[jbpm-dev] [Design of JBoss jBPM] - variable and sub-process syntax

tom.baeyens@jboss.com do-not-reply at jboss.com
Sat Apr 18 06:54:28 EDT 2009


starting on sub-process i realized that i better think out variable declarations as a whole.  i know of 4 places where we want to declare variables:

* process variables declarations
* activity variable declarations (state, task, super-state,...)
* task out variable declarations
* sub-process out variables


  <process name="...">
  |     <variable name="processVariableName" type="..." init="#{expression}">
  |       <init><string value="fixed string"/></init>
  |     <variable>
  | 
  | 
  |   <activity name="...">
  |     <variable name="activityScopedVariableName" type="..." init="#{expression}">
  |       <init><string value="fixed string"/></init>
  |     <variable>
  |     
  |     
  |   <sub-process name='...'>
  |     <in-swimlane name="superProcessSwimlaneName" sub-name="subProcessSwimlaneName" />
  |     <variable name="subProcessVariableName" init="#{expression}">
  |       <init><string value="fixed string"/></init>
  |     <variable>
  |     <out-variable name="processVariableName" init="#{expressionResolvedInSubProcessContext}">
  |     <transition>
  |       <outcome activity="subprocessactivity" />
  |       <outcome variable="subprocessvariable"><string value="..." /></outcome>
  | 
  | 
  |   <task name="...">
  |     <variable name="taskVariableName" type="..." init="#{expression}">
  |       <init><string value="fixed string"/></init>
  |     <variable>
  |     <out-variable name="processVariableName" init="#{expressionResolvedInTaskContext}">
  |     <transition name="...">
  | 

View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4226312#4226312

Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4226312



More information about the jbpm-dev mailing list