This content has been marked as final.
Show 2 replies
-
1. Re: Dynamic configuration for ActionHandler
mwohlf Jan 14, 2008 4:59 AM (in response to greeneagle)Hi,
most likely the scope of the script variables is destroyed after the script is terminated, i guess you have to store the variables in the process instance somehow and then access them in the execute() method of the action with something like (not tested):public void execute(ExecutionContext executionContext) throws Exception { ContextInstance contextInstance = executionContext.getContextInstance(); Token token = executionContext.getToken(); Object element = contextInstance.getVariable("myVar", token); [...]
there is also a nice proxy class for having spring configured actions in jBPM at:
https://springmodules.dev.java.net/docs/reference/0.8/html/jbpm31.html#d0e5105
HTH
Michael[/url] -
2. Re: Dynamic configuration for ActionHandler
kukeltje Jan 14, 2008 5:16 AM (in response to greeneagle)I'm not even sure the script and action run in a pre-determined order.... might be that they do now 'by accident' but without promoting this to 'by design' it might be lost in a new release