AnsweredAssumed Answered

Passing data from JBPMSpringActionHandler to workflowService

Question asked by calle on Nov 2, 2008
Latest reply on Dec 7, 2009 by dynamolalit
I have a scenario where I want an action to execute when leaving a workflow state. The action is generating some data that is needed later on in the workflow. Now I would like to store this data in the workflow. The action is implementing JBPMSpringActionHandler and followingly have access to the ExecutionContext where I could access just about everything in the workflow. For example I could assign my data to a variable using executionContext.setVarieble("data", "123");

Now, later on in the workflow I have a bean that is manipulating the workflow. It uses the WorkflowService for that. But how could I read the variable set in the ExecutionContext using the workflow service? When browsing the workflow service api I can only find methods to access the workflow context or package that are nodes in the repo, not an arbitrary workflow variable.

My solution so far has been to use an external bean to store the data in (associating it with a particular workflow). However I imagine this service is somehow available by the workflow service itself.

regards
Carl

Outcomes