Thanks Tom for a great work around for figuring our context in the scope of a chain of processes/rules. I am sure I will be using this in the near future.
To expand upon Tomβs original idea for context issues which I know we all run into:
It seems like we would do well to have global generic context place holders. BO shortcuts that can store any BO type on a temporary basis which could be referred to in process chain and cleared through a global function call to clear the cache.
I could see it working like this:
1 β rule that fires from selected BO β call to store selected BO in context1
2 β process triggered by the rule 1 which triggers a find statement and allows user to select another BO β call to store BO in context2
3 β process to create another BO in response to actions in 1 & 2 above which uses values from context1 & context2 and then a statement at the end of the process that clears the cache.
You could expand this to store as many context variables as needed for a particular process chain. Similar to Tomβs solution without the need to create an attribute at the RegularUser object level for each BO in your business space that needs this type of context processing.
Support,
Is there other ways to handle context that you would suggest for this build that have not been mention already?
Again thank you Tom for a great way to handle context.