cancel
Showing results for 
Search instead for 
Did you mean: 

What operations reset the property bag?

Josh_Belmonte
Champ on-the-rise
Champ on-the-rise

We use the property bag in workflow to hold temporary values and then assign them to keywords. It looks like this has failed intermittently and I can't figure out the reason for it. Ultimately, when this fails the keyword ends up being empty because the property bag has been emptied.


So my question is.. what operations would clear the property bag? Is it reliable enough to keep using in workflow or should we try to move off of it?

1 ACCEPTED ANSWER

Paul_Lloyd
Employee
Employee

Each Workflow User has 2 Property Bags. The Session Property Bag and the Scoped Property Bag.

Properties in the Session Property Bag persists for the duration of a User's Session. That is, the Session Property Bag is created when a User  logs on and starts using workflow, and is deleted when the User logs out.

Properties in the Scoped Property Bag persist only for the duration of a particular Workflow Task

Each Action & Rule that references properties includes a Use Scoped Property Bag CheckBox. Leave it unchecked to use the Session Property Bag

Individual Property Values can be cleared by using the Set Property Value Action and setting the property to a blank value.

It's much more common to clear  value from the Session Property Bag rather than the Scoped Property Bag. In that case just leave Use Scoped Property Bag unchecked

In OnBase 15 the new Set Multiple Property Values Action can be used to clear multiple properties at once

View answer in original post

3 REPLIES 3

Deborah_Hack
Star Contributor
Star Contributor
Hi Josh - Just wondering if you figured this out. I'd also like to know more about what makes the property bag empty.
-Deborah

Not applicable

Properties within workflow will clear when the session to the database is reset - such as an application pool recyle or a thick client relaunch.

To set a property to "nothing" within workflow, use the Action Type "Set Property Value" and select the "Constant value" radio button. Leave the input line for "constant value" blank.

Paul_Lloyd
Employee
Employee

Each Workflow User has 2 Property Bags. The Session Property Bag and the Scoped Property Bag.

Properties in the Session Property Bag persists for the duration of a User's Session. That is, the Session Property Bag is created when a User  logs on and starts using workflow, and is deleted when the User logs out.

Properties in the Scoped Property Bag persist only for the duration of a particular Workflow Task

Each Action & Rule that references properties includes a Use Scoped Property Bag CheckBox. Leave it unchecked to use the Session Property Bag

Individual Property Values can be cleared by using the Set Property Value Action and setting the property to a blank value.

It's much more common to clear  value from the Session Property Bag rather than the Scoped Property Bag. In that case just leave Use Scoped Property Bag unchecked

In OnBase 15 the new Set Multiple Property Values Action can be used to clear multiple properties at once