mirror of
https://github.com/Alfresco/alfresco-community-repo.git
synced 2025-07-24 17:32:48 +00:00
Workflow checkpoint.
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@3399 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
@@ -2,14 +2,14 @@
|
|||||||
<launchConfiguration type="org.eclipse.ant.AntBuilderLaunchConfigurationType">
|
<launchConfiguration type="org.eclipse.ant.AntBuilderLaunchConfigurationType">
|
||||||
<stringAttribute key="process_factory_id" value="org.eclipse.ant.ui.remoteAntProcessFactory"/>
|
<stringAttribute key="process_factory_id" value="org.eclipse.ant.ui.remoteAntProcessFactory"/>
|
||||||
<booleanAttribute key="org.eclipse.debug.ui.ATTR_LAUNCH_IN_BACKGROUND" value="false"/>
|
<booleanAttribute key="org.eclipse.debug.ui.ATTR_LAUNCH_IN_BACKGROUND" value="false"/>
|
||||||
<booleanAttribute key="org.eclipse.ant.ui.DEFAULT_VM_INSTALL" value="true"/>
|
|
||||||
<booleanAttribute key="org.eclipse.jdt.launching.DEFAULT_CLASSPATH" value="false"/>
|
<booleanAttribute key="org.eclipse.jdt.launching.DEFAULT_CLASSPATH" value="false"/>
|
||||||
|
<booleanAttribute key="org.eclipse.ant.ui.DEFAULT_VM_INSTALL" value="true"/>
|
||||||
<stringAttribute key="org.eclipse.jdt.launching.MAIN_TYPE" value="org.eclipse.ant.internal.ui.antsupport.InternalAntRunner"/>
|
<stringAttribute key="org.eclipse.jdt.launching.MAIN_TYPE" value="org.eclipse.ant.internal.ui.antsupport.InternalAntRunner"/>
|
||||||
<stringAttribute key="org.eclipse.ui.externaltools.ATTR_RUN_BUILD_KINDS" value="incremental,auto,"/>
|
<stringAttribute key="org.eclipse.ui.externaltools.ATTR_RUN_BUILD_KINDS" value="incremental,auto,"/>
|
||||||
<booleanAttribute key="org.eclipse.ant.ui.ATTR_TARGETS_UPDATED" value="true"/>
|
<booleanAttribute key="org.eclipse.ant.ui.ATTR_TARGETS_UPDATED" value="true"/>
|
||||||
<booleanAttribute key="org.eclipse.debug.core.appendEnvironmentVariables" value="true"/>
|
|
||||||
<booleanAttribute key="org.eclipse.ui.externaltools.ATTR_TRIGGERS_CONFIGURED" value="true"/>
|
|
||||||
<stringAttribute key="org.eclipse.jdt.launching.WORKING_DIRECTORY" value="${workspace_loc:Repository}"/>
|
<stringAttribute key="org.eclipse.jdt.launching.WORKING_DIRECTORY" value="${workspace_loc:Repository}"/>
|
||||||
|
<booleanAttribute key="org.eclipse.ui.externaltools.ATTR_TRIGGERS_CONFIGURED" value="true"/>
|
||||||
|
<booleanAttribute key="org.eclipse.debug.core.appendEnvironmentVariables" value="true"/>
|
||||||
<stringAttribute key="org.eclipse.jdt.launching.CLASSPATH_PROVIDER" value="org.eclipse.ant.ui.AntClasspathProvider"/>
|
<stringAttribute key="org.eclipse.jdt.launching.CLASSPATH_PROVIDER" value="org.eclipse.ant.ui.AntClasspathProvider"/>
|
||||||
<booleanAttribute key="org.eclipse.ui.externaltools.ATTR_BUILDER_ENABLED" value="true"/>
|
<booleanAttribute key="org.eclipse.ui.externaltools.ATTR_BUILDER_ENABLED" value="true"/>
|
||||||
<stringAttribute key="org.eclipse.ui.externaltools.ATTR_BUILD_SCOPE" value="${working_set:<?xml version="1.0" encoding="UTF-8"?> <launchConfigurationWorkingSet editPageId="org.eclipse.ui.resourceWorkingSetPage" factoryID="org.eclipse.ui.internal.WorkingSetFactory" name="workingSet"> <item factoryID="org.eclipse.ui.internal.model.ResourceFactory" path="/Repository" type="4"/> </launchConfigurationWorkingSet>}"/>
|
<stringAttribute key="org.eclipse.ui.externaltools.ATTR_BUILD_SCOPE" value="${working_set:<?xml version="1.0" encoding="UTF-8"?> <launchConfigurationWorkingSet editPageId="org.eclipse.ui.resourceWorkingSetPage" factoryID="org.eclipse.ui.internal.WorkingSetFactory" name="workingSet"> <item factoryID="org.eclipse.ui.internal.model.ResourceFactory" path="/Repository" type="4"/> </launchConfigurationWorkingSet>}"/>
|
||||||
@@ -18,13 +18,13 @@
|
|||||||
<stringAttribute key="org.eclipse.ant.ui.ATTR_ANT_AUTO_TARGETS" value="compile-jibx,"/>
|
<stringAttribute key="org.eclipse.ant.ui.ATTR_ANT_AUTO_TARGETS" value="compile-jibx,"/>
|
||||||
<stringAttribute key="org.eclipse.jdt.launching.VM_INSTALL_NAME" value="jdk1.5.0_06"/>
|
<stringAttribute key="org.eclipse.jdt.launching.VM_INSTALL_NAME" value="jdk1.5.0_06"/>
|
||||||
<listAttribute key="org.eclipse.jdt.launching.CLASSPATH">
|
<listAttribute key="org.eclipse.jdt.launching.CLASSPATH">
|
||||||
<listEntry value="<?xml version="1.0" encoding="UTF-8"?> <runtimeClasspathEntry containerPath="org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/jdk1.5.0_02" path="1" type="4"/> "/>
|
<listEntry value="<?xml version="1.0" encoding="UTF-8"?> <runtimeClasspathEntry containerPath="org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/jdk1.5.0_02" path="1" type="4"/> "/>
|
||||||
<listEntry value="<?xml version="1.0" encoding="UTF-8"?> <runtimeClasspathEntry id="org.eclipse.ant.ui.classpathentry.antHome"> <memento default="true"/> </runtimeClasspathEntry> "/>
|
<listEntry value="<?xml version="1.0" encoding="UTF-8"?> <runtimeClasspathEntry id="org.eclipse.ant.ui.classpathentry.antHome"> <memento default="true"/> </runtimeClasspathEntry> "/>
|
||||||
<listEntry value="<?xml version="1.0" encoding="UTF-8"?> <runtimeClasspathEntry id="org.eclipse.ant.ui.classpathentry.extraClasspathEntries"> <memento/> </runtimeClasspathEntry> "/>
|
<listEntry value="<?xml version="1.0" encoding="UTF-8"?> <runtimeClasspathEntry id="org.eclipse.ant.ui.classpathentry.extraClasspathEntries"> <memento/> </runtimeClasspathEntry> "/>
|
||||||
<listEntry value="<?xml version="1.0" encoding="UTF-8"?> <runtimeClasspathEntry internalArchive="/3rd Party/lib/jibx/jibx-run.jar" path="3" type="2"/> "/>
|
<listEntry value="<?xml version="1.0" encoding="UTF-8"?> <runtimeClasspathEntry internalArchive="/3rd Party/lib/jibx/jibx-run.jar" path="3" type="2"/> "/>
|
||||||
<listEntry value="<?xml version="1.0" encoding="UTF-8"?> <runtimeClasspathEntry internalArchive="/3rd Party/lib/jibx/jibx-bind.jar" path="3" type="2"/> "/>
|
<listEntry value="<?xml version="1.0" encoding="UTF-8"?> <runtimeClasspathEntry internalArchive="/3rd Party/lib/jibx/jibx-bind.jar" path="3" type="2"/> "/>
|
||||||
<listEntry value="<?xml version="1.0" encoding="UTF-8"?> <runtimeClasspathEntry internalArchive="/3rd Party/lib/bcel.jar" path="3" type="2"/> "/>
|
<listEntry value="<?xml version="1.0" encoding="UTF-8"?> <runtimeClasspathEntry internalArchive="/3rd Party/lib/bcel.jar" path="3" type="2"/> "/>
|
||||||
<listEntry value="<?xml version="1.0" encoding="UTF-8"?> <runtimeClasspathEntry internalArchive="/3rd Party/lib/xpp3.jar" path="3" type="2"/> "/>
|
<listEntry value="<?xml version="1.0" encoding="UTF-8"?> <runtimeClasspathEntry internalArchive="/3rd Party/lib/xpp3-1.1.3_8.jar" path="3" type="2"/> "/>
|
||||||
</listAttribute>
|
</listAttribute>
|
||||||
<stringAttribute key="org.eclipse.ui.externaltools.ATTR_LOCATION" value="${workspace_loc:/Repository/project-build.xml}"/>
|
<stringAttribute key="org.eclipse.ui.externaltools.ATTR_LOCATION" value="${workspace_loc:/Repository/project-build.xml}"/>
|
||||||
</launchConfiguration>
|
</launchConfiguration>
|
||||||
|
@@ -22,6 +22,7 @@
|
|||||||
<import resource="classpath:alfresco/authentication-services-context.xml" />
|
<import resource="classpath:alfresco/authentication-services-context.xml" />
|
||||||
<import resource="classpath:alfresco/policy-context.xml" />
|
<import resource="classpath:alfresco/policy-context.xml" />
|
||||||
<import resource="classpath:alfresco/import-export-context.xml" />
|
<import resource="classpath:alfresco/import-export-context.xml" />
|
||||||
|
<import resource="classpath:alfresco/workflow-context.xml" />
|
||||||
<import resource="classpath:alfresco/bootstrap-context.xml" />
|
<import resource="classpath:alfresco/bootstrap-context.xml" />
|
||||||
<import resource="classpath:alfresco/jcr-api-context.xml" />
|
<import resource="classpath:alfresco/jcr-api-context.xml" />
|
||||||
<import resource="classpath*:alfresco/patch/*-context.xml" />
|
<import resource="classpath*:alfresco/patch/*-context.xml" />
|
||||||
|
@@ -41,6 +41,98 @@
|
|||||||
<value>org/alfresco/repo/domain/hibernate/VersionCount.hbm.xml</value>
|
<value>org/alfresco/repo/domain/hibernate/VersionCount.hbm.xml</value>
|
||||||
<value>org/alfresco/repo/domain/hibernate/AppliedPatch.hbm.xml</value>
|
<value>org/alfresco/repo/domain/hibernate/AppliedPatch.hbm.xml</value>
|
||||||
<value>org/alfresco/repo/domain/hibernate/Permission.hbm.xml</value>
|
<value>org/alfresco/repo/domain/hibernate/Permission.hbm.xml</value>
|
||||||
|
|
||||||
|
<!-- -->
|
||||||
|
<!-- JBoss jBPM Workflow Engine -->
|
||||||
|
<!-- -->
|
||||||
|
<!-- TODO: Determine if it's possible to inject the following mappings -->
|
||||||
|
<!-- from elsewhere -->
|
||||||
|
<!-- -->
|
||||||
|
<value>org/jbpm/graph/action/Script.hbm.xml</value>
|
||||||
|
<value>org/jbpm/db/hibernate.queries.hbm.xml</value>
|
||||||
|
<value>org/jbpm/graph/def/ProcessDefinition.hbm.xml</value>
|
||||||
|
<value>org/jbpm/graph/def/Node.hbm.xml</value>
|
||||||
|
<value>org/jbpm/graph/def/Transition.hbm.xml</value>
|
||||||
|
<value>org/jbpm/graph/def/Event.hbm.xml</value>
|
||||||
|
<value>org/jbpm/graph/def/Action.hbm.xml</value>
|
||||||
|
<value>org/jbpm/graph/def/SuperState.hbm.xml</value>
|
||||||
|
<value>org/jbpm/graph/def/ExceptionHandler.hbm.xml</value>
|
||||||
|
<value>org/jbpm/instantiation/Delegation.hbm.xml</value>
|
||||||
|
<value>org/jbpm/graph/node/StartState.hbm.xml</value>
|
||||||
|
<value>org/jbpm/graph/node/EndState.hbm.xml</value>
|
||||||
|
<value>org/jbpm/graph/node/ProcessState.hbm.xml</value>
|
||||||
|
<value>org/jbpm/graph/node/Decision.hbm.xml</value>
|
||||||
|
<value>org/jbpm/graph/node/Fork.hbm.xml</value>
|
||||||
|
<value>org/jbpm/graph/node/Join.hbm.xml</value>
|
||||||
|
<value>org/jbpm/graph/node/State.hbm.xml</value>
|
||||||
|
<value>org/jbpm/graph/node/TaskNode.hbm.xml</value>
|
||||||
|
<value>org/jbpm/context/def/ContextDefinition.hbm.xml</value>
|
||||||
|
<value>org/jbpm/context/def/VariableAccess.hbm.xml</value>
|
||||||
|
<value>org/jbpm/taskmgmt/def/TaskMgmtDefinition.hbm.xml</value>
|
||||||
|
<value>org/jbpm/taskmgmt/def/Swimlane.hbm.xml</value>
|
||||||
|
<value>org/jbpm/taskmgmt/def/Task.hbm.xml</value>
|
||||||
|
<value>org/jbpm/taskmgmt/def/TaskController.hbm.xml</value>
|
||||||
|
<value>org/jbpm/module/def/ModuleDefinition.hbm.xml</value>
|
||||||
|
<value>org/jbpm/bytes/ByteArray.hbm.xml</value>
|
||||||
|
<value>org/jbpm/file/def/FileDefinition.hbm.xml</value>
|
||||||
|
<value>org/jbpm/scheduler/def/CreateTimerAction.hbm.xml</value>
|
||||||
|
<value>org/jbpm/scheduler/def/CancelTimerAction.hbm.xml</value>
|
||||||
|
<value>org/jbpm/graph/exe/Comment.hbm.xml</value>
|
||||||
|
<value>org/jbpm/graph/exe/ProcessInstance.hbm.xml</value>
|
||||||
|
<value>org/jbpm/graph/exe/Token.hbm.xml</value>
|
||||||
|
<value>org/jbpm/graph/exe/RuntimeAction.hbm.xml</value>
|
||||||
|
<value>org/jbpm/module/exe/ModuleInstance.hbm.xml</value>
|
||||||
|
<value>org/jbpm/context/exe/ContextInstance.hbm.xml</value>
|
||||||
|
<value>org/jbpm/context/exe/TokenVariableMap.hbm.xml</value>
|
||||||
|
<value>org/jbpm/context/exe/VariableInstance.hbm.xml</value>
|
||||||
|
<value>org/jbpm/context/exe/variableinstance/ByteArrayInstance.hbm.xml</value>
|
||||||
|
<value>org/jbpm/context/exe/variableinstance/DateInstance.hbm.xml</value>
|
||||||
|
<value>org/jbpm/context/exe/variableinstance/DoubleInstance.hbm.xml</value>
|
||||||
|
<value>org/jbpm/context/exe/variableinstance/HibernateLongInstance.hbm.xml</value>
|
||||||
|
<value>org/jbpm/context/exe/variableinstance/HibernateStringInstance.hbm.xml</value>
|
||||||
|
<value>org/jbpm/context/exe/variableinstance/LongInstance.hbm.xml</value>
|
||||||
|
<value>org/jbpm/context/exe/variableinstance/NullInstance.hbm.xml</value>
|
||||||
|
<value>org/jbpm/context/exe/variableinstance/StringInstance.hbm.xml</value>
|
||||||
|
<value>org/jbpm/msg/Message.hbm.xml</value>
|
||||||
|
<value>org/jbpm/msg/db/TextMessage.hbm.xml</value>
|
||||||
|
<value>org/jbpm/command/ExecuteActionCommand.hbm.xml</value>
|
||||||
|
<value>org/jbpm/command/ExecuteNodeCommand.hbm.xml</value>
|
||||||
|
<value>org/jbpm/command/SignalCommand.hbm.xml</value>
|
||||||
|
<value>org/jbpm/command/TaskInstanceEndCommand.hbm.xml</value>
|
||||||
|
<value>org/jbpm/taskmgmt/exe/TaskMgmtInstance.hbm.xml</value>
|
||||||
|
<value>org/jbpm/taskmgmt/exe/TaskInstance.hbm.xml</value>
|
||||||
|
<value>org/jbpm/taskmgmt/exe/PooledActor.hbm.xml</value>
|
||||||
|
<value>org/jbpm/taskmgmt/exe/SwimlaneInstance.hbm.xml</value>
|
||||||
|
<value>org/jbpm/scheduler/exe/Timer.hbm.xml</value>
|
||||||
|
<value>org/jbpm/logging/log/ProcessLog.hbm.xml</value>
|
||||||
|
<value>org/jbpm/logging/log/MessageLog.hbm.xml</value>
|
||||||
|
<value>org/jbpm/logging/log/CompositeLog.hbm.xml</value>
|
||||||
|
<value>org/jbpm/graph/log/ActionLog.hbm.xml</value>
|
||||||
|
<value>org/jbpm/graph/log/NodeLog.hbm.xml</value>
|
||||||
|
<value>org/jbpm/graph/log/ProcessInstanceCreateLog.hbm.xml</value>
|
||||||
|
<value>org/jbpm/graph/log/ProcessInstanceEndLog.hbm.xml</value>
|
||||||
|
<value>org/jbpm/graph/log/SignalLog.hbm.xml</value>
|
||||||
|
<value>org/jbpm/graph/log/TokenCreateLog.hbm.xml</value>
|
||||||
|
<value>org/jbpm/graph/log/TokenEndLog.hbm.xml</value>
|
||||||
|
<value>org/jbpm/graph/log/TransitionLog.hbm.xml</value>
|
||||||
|
<value>org/jbpm/context/log/VariableLog.hbm.xml</value>
|
||||||
|
<value>org/jbpm/context/log/VariableCreateLog.hbm.xml</value>
|
||||||
|
<value>org/jbpm/context/log/VariableDeleteLog.hbm.xml</value>
|
||||||
|
<value>org/jbpm/context/log/VariableUpdateLog.hbm.xml</value>
|
||||||
|
<value>org/jbpm/context/log/variableinstance/ByteArrayUpdateLog.hbm.xml</value>
|
||||||
|
<value>org/jbpm/context/log/variableinstance/DateUpdateLog.hbm.xml</value>
|
||||||
|
<value>org/jbpm/context/log/variableinstance/DoubleUpdateLog.hbm.xml</value>
|
||||||
|
<value>org/jbpm/context/log/variableinstance/HibernateLongUpdateLog.hbm.xml</value>
|
||||||
|
<value>org/jbpm/context/log/variableinstance/HibernateStringUpdateLog.hbm.xml</value>
|
||||||
|
<value>org/jbpm/context/log/variableinstance/LongUpdateLog.hbm.xml</value>
|
||||||
|
<value>org/jbpm/context/log/variableinstance/StringUpdateLog.hbm.xml</value>
|
||||||
|
<value>org/jbpm/taskmgmt/log/TaskLog.hbm.xml</value>
|
||||||
|
<value>org/jbpm/taskmgmt/log/TaskCreateLog.hbm.xml</value>
|
||||||
|
<value>org/jbpm/taskmgmt/log/TaskAssignLog.hbm.xml</value>
|
||||||
|
<value>org/jbpm/taskmgmt/log/TaskEndLog.hbm.xml</value>
|
||||||
|
<value>org/jbpm/taskmgmt/log/SwimlaneLog.hbm.xml</value>
|
||||||
|
<value>org/jbpm/taskmgmt/log/SwimlaneCreateLog.hbm.xml</value>
|
||||||
|
<value>org/jbpm/taskmgmt/log/SwimlaneAssignLog.hbm.xml</value>
|
||||||
</list>
|
</list>
|
||||||
</property>
|
</property>
|
||||||
<property name="hibernateProperties" ref="hibernateConfigProperties" />
|
<property name="hibernateProperties" ref="hibernateConfigProperties" />
|
||||||
|
@@ -4,16 +4,25 @@
|
|||||||
<beans>
|
<beans>
|
||||||
|
|
||||||
<!-- jBPM configuration -->
|
<!-- jBPM configuration -->
|
||||||
<bean id="jbpm.configuration" class="org.springmodules.workflow.jbpm31.LocalJbpmConfigurationFactoryBean">
|
<bean id="jbpm_configuration" class="org.springmodules.workflow.jbpm31.LocalJbpmConfigurationFactoryBean">
|
||||||
<property name="sessionFactory" ref="sessionFactory"/>
|
<property name="sessionFactory" ref="sessionFactory"/>
|
||||||
<property name="configuration" value="classpath:org/jbpm/default.jbpm.cfg.xml"/>
|
<property name="configuration" value="classpath:org/jbpm/default.jbpm.cfg.xml"/>
|
||||||
|
<property name="processDefinitions">
|
||||||
|
<list>
|
||||||
|
<ref local="jbpm_testWorkflow"/>
|
||||||
|
</list>
|
||||||
|
</property>
|
||||||
|
|
||||||
</bean>
|
</bean>
|
||||||
|
|
||||||
<!-- jBPM template -->
|
<!-- jBPM template -->
|
||||||
<bean id="jbpm.template" class="org.springmodules.workflow.jbpm31.JbpmTemplate">
|
<bean id="jbpm_template" class="org.springmodules.workflow.jbpm31.JbpmTemplate">
|
||||||
<constructor-arg index="0" ref="jbpm.configuration"/>
|
<constructor-arg index="0" ref="jbpm_configuration"/>
|
||||||
</bean>
|
</bean>
|
||||||
|
|
||||||
|
<!-- TODO: Remove this - for short-term testing only -->
|
||||||
|
<bean id="jbpm_testWorkflow" class="org.springmodules.workflow.jbpm31.definition.ProcessDefinitionFactoryBean">
|
||||||
|
<property name="definitionLocation" value="classpath:org/alfresco/repo/workflow/jbpm/test_processdefinition.xml"/>
|
||||||
|
</bean>
|
||||||
|
|
||||||
</beans>
|
</beans>
|
||||||
|
@@ -41,9 +41,9 @@ public class JBPMSpringTest extends BaseSpringTest
|
|||||||
|
|
||||||
|
|
||||||
//@Override
|
//@Override
|
||||||
protected void xonSetUpInTransaction() throws Exception
|
protected void onSetUpInTransaction() throws Exception
|
||||||
{
|
{
|
||||||
jbpmTemplate = (JbpmTemplate)applicationContext.getBean("jbpm.template");
|
jbpmTemplate = (JbpmTemplate)applicationContext.getBean("jbpm_template");
|
||||||
descriptorService = (DescriptorService)applicationContext.getBean("DescriptorService");
|
descriptorService = (DescriptorService)applicationContext.getBean("DescriptorService");
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -51,7 +51,7 @@ public class JBPMSpringTest extends BaseSpringTest
|
|||||||
{
|
{
|
||||||
}
|
}
|
||||||
|
|
||||||
public void xtestHelloWorld()
|
public void testHelloWorld()
|
||||||
throws Exception
|
throws Exception
|
||||||
{
|
{
|
||||||
// Between the 3 method calls below, all data is passed via the
|
// Between the 3 method calls below, all data is passed via the
|
||||||
@@ -74,21 +74,21 @@ public class JBPMSpringTest extends BaseSpringTest
|
|||||||
theProcessInstanceContinuesWhenAnAsyncMessageIsReceived();
|
theProcessInstanceContinuesWhenAnAsyncMessageIsReceived();
|
||||||
}
|
}
|
||||||
|
|
||||||
public void xtestStep0()
|
public void testStep0()
|
||||||
throws Exception
|
throws Exception
|
||||||
{
|
{
|
||||||
deployProcessDefinition();
|
deployProcessDefinition();
|
||||||
setComplete();
|
setComplete();
|
||||||
}
|
}
|
||||||
|
|
||||||
public void xtestStep1()
|
public void testStep1()
|
||||||
throws Exception
|
throws Exception
|
||||||
{
|
{
|
||||||
processInstanceIsCreatedWhenUserSubmitsWebappForm();
|
processInstanceIsCreatedWhenUserSubmitsWebappForm();
|
||||||
setComplete();
|
setComplete();
|
||||||
}
|
}
|
||||||
|
|
||||||
public void xtestStep2()
|
public void testStep2()
|
||||||
throws Exception
|
throws Exception
|
||||||
{
|
{
|
||||||
theProcessInstanceContinuesWhenAnAsyncMessageIsReceived();
|
theProcessInstanceContinuesWhenAnAsyncMessageIsReceived();
|
||||||
|
@@ -0,0 +1,42 @@
|
|||||||
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
|
|
||||||
|
<process-definition xmlns="urn:jbpm.org:jpdl-3.1" name="Review and Approve">
|
||||||
|
<swimlane name="Initiator"></swimlane>
|
||||||
|
<start-state name="start">
|
||||||
|
<task name="Submit" swimlane="Initiator">
|
||||||
|
<controller>
|
||||||
|
<variable name="reviewer" />
|
||||||
|
</controller>
|
||||||
|
</task>
|
||||||
|
<transition name="" to="Review"></transition>
|
||||||
|
</start-state>
|
||||||
|
<swimlane name="Reviewer">
|
||||||
|
<assignment actor-id="#{reviewer}"></assignment>
|
||||||
|
</swimlane>
|
||||||
|
<task-node name="Review">
|
||||||
|
<task name="Review" duedate="1 business day" blocking="true" swimlane="Reviewer">
|
||||||
|
<controller>
|
||||||
|
<variable name="comment" access="read,write,required"></variable>
|
||||||
|
</controller>
|
||||||
|
</task>
|
||||||
|
<transition name="reject" to="Rejected"></transition>
|
||||||
|
<transition name="approve" to="Approved"></transition>
|
||||||
|
</task-node>
|
||||||
|
<end-state name="end"></end-state>
|
||||||
|
<task-node name="Rejected">
|
||||||
|
<task name="Rejected" swimlane="Initiator">
|
||||||
|
<controller>
|
||||||
|
<variable name="comment" access="read"></variable>
|
||||||
|
</controller>
|
||||||
|
</task>
|
||||||
|
<transition name="" to="end"></transition>
|
||||||
|
</task-node>
|
||||||
|
<task-node name="Approved">
|
||||||
|
<task name="Approved" swimlane="Initiator">
|
||||||
|
<controller>
|
||||||
|
<variable name="comment" access="read"></variable>
|
||||||
|
</controller>
|
||||||
|
</task>
|
||||||
|
<transition name="" to="end"></transition>
|
||||||
|
</task-node>
|
||||||
|
</process-definition>
|
Reference in New Issue
Block a user