Home > other >  Start the abnormal problems activiti workflow
Start the abnormal problems activiti workflow

Time:01-12

//1, the release process
@ Test
Public void deploy () {
//get the process engine
ProcessEngine ProcessEngine=ProcessEngines. GetDefaultProcessEngine ();
Deployment Deployment=processEngine. GetRepositoryService (.) createDeployment () addClasspathResource (" diagrams/dbglProcess. BPMN "). The deploy ();
System. Err. Println (deployment. GetId () + "" + deployment. The getName ());
}

//2, start the process
@ Test
Public void startProcess () {
//get the process engine template
ProcessEngine ProcessEngine=ProcessEngines. GetDefaultProcessEngine ();
//start a process
//use the process definition of the key to start the process instance, the default will be according to the latest version of the startup process instance
ProcessInstance PI=processEngine. GetRuntimeService (.) startProcessInstanceByKey (" dbglProcess ");
System. Err. Println (" pid: "+ PI. GetId () +", activities: "+ PI. GetActivityId ());
}

Code as above, execute to the third line ProcessInstance PI=processEngine. GetRuntimeService () startProcessInstanceByKey (" dbglProcess "); Times wrong, error message below
Org. Activiti. Engine. ActivitiIllegalArgumentException: Variable users is not found
The at org. Activiti. Engine. Impl. BPMN. Behaviors. MultiInstanceActivityBehavior. ResolveNrOfInstances (MultiInstanceActivityBehavior. Java: 143)
The at org. Activiti. Engine. Impl. BPMN. Behaviors. ParallelMultiInstanceBehavior. CreateInstances (ParallelMultiInstanceBehavior. Java: 39)
The at org. Activiti. Engine. Impl. BPMN. Behaviors. MultiInstanceActivityBehavior. Execute (MultiInstanceActivityBehavior. Java: 92)
At org. Activiti. Engine. Impl. PVM. Runtime. AtomicOperationActivityExecute. Execute (60) AtomicOperationActivityExecute. Java:
At org.activiti.engine.impl.interceptor.Com mandContext. PerformOperation (CommandContext. Java: 97)
The at org. Activiti. Engine. Impl. Persistence. Entity. ExecutionEntity. PerformOperationSync (ExecutionEntity. Java: 650)
The at org. Activiti. Engine. Impl. Persistence. Entity. ExecutionEntity. PerformOperation (ExecutionEntity. Java: 643)
The at org. Activiti. Engine. Impl. PVM. Runtime. AtomicOperationTransitionNotifyListenerStart. EventNotificationsCompleted (AtomicOperationTransitionNotifyListenerStart. Java: 52)
The at org. Activiti. Engine. Impl. PVM. Runtime. AbstractEventAtomicOperation. Execute (AbstractEventAtomicOperation. Java: 56)
At org.activiti.engine.impl.interceptor.Com mandContext. PerformOperation (CommandContext. Java: 97)
The at org. Activiti. Engine. Impl. Persistence. Entity. ExecutionEntity. PerformOperationSync (ExecutionEntity. Java: 650)
The at org. Activiti. Engine. Impl. Persistence. Entity. ExecutionEntity. PerformOperation (ExecutionEntity. Java: 643)
At org. Activiti. Engine. Impl. PVM. Runtime. AbstractEventAtomicOperation. Execute (49) AbstractEventAtomicOperation. Java:
At org.activiti.engine.impl.interceptor.Com mandContext. PerformOperation (CommandContext. Java: 97)
The at org. Activiti. Engine. Impl. Persistence. Entity. ExecutionEntity. PerformOperationSync (ExecutionEntity. Java: 650)
The at org. Activiti. Engine. Impl. Persistence. Entity. ExecutionEntity. PerformOperation (ExecutionEntity. Java: 643)
At org. Activiti. Engine. Impl. PVM. Runtime. AtomicOperationTransitionCreateScope. Execute (49) AtomicOperationTransitionCreateScope. Java:
At org.activiti.engine.impl.interceptor.Com mandContext. PerformOperation (CommandContext. Java: 97)
The at org. Activiti. Engine. Impl. Persistence. Entity. ExecutionEntity. PerformOperationSync (ExecutionEntity. Java: 650)
The at org. Activiti. Engine. Impl. Persistence. Entity. ExecutionEntity. PerformOperation (ExecutionEntity. Java: 643)
The at org. Activiti. Engine. Impl. PVM. Runtime. AtomicOperationTransitionNotifyListenerTake. Execute (AtomicOperationTransitionNotifyListenerTake. Java: 80)
At org.activiti.engine.impl.interceptor.Com mandContext. PerformOperation (CommandContext. Java: 97)
The at org. Activiti. Engine. Impl. Persistence. Entity. ExecutionEntity. PerformOperationSync (ExecutionEntity. Java: 650)
The at org. Activiti. Engine. Impl. Persistence. Entity. ExecutionEntity. PerformOperation (ExecutionEntity. Java: 643)
The at org. Activiti. Engine. Impl. PVM. Runtime. AtomicOperationTransitionDestroyScope. Execute (AtomicOperationTransitionDestroyScope. Java: 116)
At org.activiti.engine.impl.interceptor.Com mandContext. PerformOperation (CommandContext. Java: 97)
The at org. Activiti. Engine. Impl. Persistence. Entity. ExecutionEntity. PerformOperationSync (ExecutionEntity. Java: 650)
The at org. Activiti. Engine. Impl. Persistence. Entity. ExecutionEntity. PerformOperation (ExecutionEntity. Java: 643)
The at org. Activiti. Engine. Impl. PVM. Runtime. AtomicOperationTransitionNotifyListenerEnd. EventNotificationsCompleted (AtomicOperationTransitionNotifyListenerEnd. Java: 35)
The at org. Activiti. Engine. Impl. PVM. Runtime. AbstractEventAtomicOperation. Execute (AbstractEventAtomicOperation. Java: 56)
At org.activiti.engine.impl.interceptor.Com mandContext. PerformOperation (CommandContext. Java: 97)
The at org. Activiti. Engine. Impl. Persistence. Entity. ExecutionEntity. PerformOperationSync (ExecutionEntity. Java: 650)
The at org. Activiti. Engine. Impl. Persistence. Entity. ExecutionEntity. PerformOperation (ExecutionEntity. Java: 643)
nullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnull
  • Related