|
Hi,
it looks like setting WorkflowConstants variables with script tag like this is useless :
<process-definition
xmlns="" name="lead_a_rejeter">
<event type="process-start">
<script>
<_expression_>
executionContext.setVariable("workflow_review_type", "workflowDocumentReviewTypeSerie");
System.out.println("Setting workflow review type....");
executionContext.setVariable("LifeCycleTransitionToDestination", "rejete");
System.out.println("Setting LifeCycleTransitionToDestination ....");
</_expression_>
</script>
</event>
...
this variables' value are updated to default values when the workflow is started, see method startWorkflow() of class DocumentWorkflowActionsBean.
see the traceback below to see the suspected behaviour :
2007-05-21 15:19:05,264 DEBUG [org.jbpm.graph.def.GraphElement] event 'process-start' on 'ProcessDefinition(lead_a_rejeter)' for 'Token(/)'
2007-05-21 15:19:05,280 DEBUG [org.jbpm.graph.def.GraphElement] executing action 'Script(1be9706)'
2007-05-21 15:19:05,296 DEBUG [org.jbpm.graph.action.Script] script input: {taskInstance=null, node=StartState(start), token=Token(/), task=null, executionContext=ExecutionContext[Token(/)]}
2007-05-21 15:19:05,389 DEBUG [org.jbpm.context.exe.VariableContainer] create variable 'workflow_review_type' in 'TokenVariableMap549d4' with value 'workflowDocumentReviewTypeSerie'
2007-05-21 15:19:05,405 DEBUG [org.jbpm.db.hibernate.Converters] adding converter 'D', 'org.jbpm.context.exe.converter.DoubleToStringConverter'
2007-05-21 15:19:05,405 DEBUG [org.jbpm.db.hibernate.Converters] adding converter 'C', 'org.jbpm.context.exe.converter.CharacterToStringConverter'
2007-05-21 15:19:05,405 DEBUG [org.jbpm.db.hibernate.Converters] adding converter 'B', 'org.jbpm.context.exe.converter.BooleanToStringConverter'
2007-05-21 15:19:05,405 DEBUG [org.jbpm.db.hibernate.Converters] adding converter 'Y', 'org.jbpm.context.exe.converter.BytesToByteArrayConverter'
2007-05-21 15:19:05,405 DEBUG [org.jbpm.db.hibernate.Converters] adding converter 'A', 'org.jbpm.context.exe.converter.DateToLongConverter'
2007-05-21 15:19:05,405 DEBUG [org.jbpm.db.hibernate.Converters] adding converter 'R', 'org.jbpm.context.exe.converter.SerializableToByteArrayConverter'
2007-05-21 15:19:05,405 DEBUG [org.jbpm.db.hibernate.Converters] adding converter 'I', 'org.jbpm.context.exe.converter.IntegerToLongConverter'
2007-05-21 15:19:05,405 DEBUG [org.jbpm.db.hibernate.Converters] adding converter 'H', 'org.jbpm.context.exe.converter.ShortToLongConverter'
2007-05-21 15:19:05,405 DEBUG [org.jbpm.db.hibernate.Converters] adding converter 'G', 'org.jbpm.context.exe.converter.FloatToDoubleConverter'
2007-05-21 15:19:05,405 DEBUG [org.jbpm.db.hibernate.Converters] adding converter 'F', 'org.jbpm.context.exe.converter.FloatToStringConverter'
2007-05-21 15:19:05,421 DEBUG [org.jbpm.db.hibernate.Converters] adding converter 'E', 'org.jbpm.context.exe.converter.ByteToLongConverter'
2007-05-21 15:19:05,421 INFO [STDOUT] Setting workflow review type....
2007-05-21 15:19:05,421 DEBUG [org.jbpm.context.exe.VariableContainer] create variable 'LifeCycleTransitionToDestination' in 'TokenVariableMap549d4' with value 'rejete'
2007-05-21 15:19:05,421 INFO [STDOUT] Setting LifeCycleTransitionToDestination ....
2007-05-21 15:19:05,436 DEBUG [org.jbpm.context.exe.VariableContainer] create variable 'VduTransition' in 'TokenVariableMap549d4' with value 'rejete'
2007-05-21 15:19:05,436 INFO [STDOUT] Setting VduTransition....
2007-05-21 15:19:05,436 DEBUG [org.jbpm.graph.action.Script] script output: {}
2007-05-21 15:19:05,436 DEBUG [org.jbpm.context.exe.VariableContainer] create variable 'workflowReviewLevel' in 'TokenVariableMap549d4' with value '0'
2007-05-21 15:19:05,436 DEBUG [org.jbpm.context.exe.VariableContainer] update variable 'LifeCycleTransitionToDestination' in 'TokenVariableMap549d4' to value 'null'
2007-05-21 15:19:05,436 DEBUG [org.jbpm.context.exe.VariableContainer] create variable 'documentModificationPolicy' in 'TokenVariableMap549d4' with value 'workflowDocumentModificationNotAllowed'
2007-05-21 15:19:05,436 DEBUG [org.jbpm.context.exe.VariableContainer] create variable 'documentVersioningPolicy' in 'TokenVariableMap549d4' with value 'workflowDocumentVersioningAuto'
2007-05-21 15:19:05,452 DEBUG [org.jbpm.context.exe.VariableContainer] create variable 'workflowFormerReviewLevel' in 'TokenVariableMap549d4' with value '0'
2007-05-21 15:19:05,452 DEBUG [org.jbpm.context.exe.VariableContainer] create variable 'documentLocationURI' in 'TokenVariableMap549d4' with value 'demo'
2007-05-21 15:19:05,452 DEBUG [org.jbpm.context.exe.VariableContainer] create variable 'author' in 'TokenVariableMap549d4' with value 'vdu'
2007-05-21 15:19:05,452 DEBUG [org.jbpm.context.exe.VariableContainer] create variable 'documentRef' in 'TokenVariableMap549d4' with value 'b3daf65d-9974-46a5-b884-d61c1961e975'
2007-05-21 15:19:05,468 DEBUG [org.jbpm.graph.def.GraphElement] event 'before-signal' on 'StartState(start)' for 'Token(/)'
2007-05-21 15:19:05,483 DEBUG [org.jbpm.graph.def.GraphElement] event 'node-leave' on 'StartState(start)' for 'Token(/)'
2007-05-21 15:19:05,483 DEBUG [org.jbpm.graph.def.GraphElement] event 'transition' on 'Transition(t1)' for 'Token(/)'
2007-05-21 15:19:05,483 DEBUG [org.jbpm.graph.def.GraphElement] executing action 'StartupActionHandler'
2007-05-21 15:19:05,499 INFO [org.nuxeo.ecm.platform.workflow.jbpm.handlers.api.client.AbstractWorkflowDocumentActionHandler] ##########################################
2007-05-21 15:19:05,499 INFO [org.nuxeo.ecm.platform.workflow.jbpm.handlers.api.client.AbstractWorkflowDocumentActionHandler] PROCESS STARTS
2007-05-21 15:19:05,499 INFO [org.nuxeo.ecm.platform.workflow.jbpm.handlers.api.client.AbstractWorkflowDocumentActionHandler] ##########################################
|
|
|
|