java.lang.Object
org.jbpm.examples.test.TestUtil
- public class TestUtil
- extends java.lang.Object
|
Method Summary |
void |
cancelFlow(java.lang.String actorId,
java.lang.Long flowId,
int levelsUp,
org.jbpm.workflow.execution.ExecutionComponent executionComponent)
|
void |
cancelInstance(java.lang.String actorId,
java.lang.Long processInstanceId,
org.jbpm.workflow.execution.ExecutionComponent executionComponent)
|
void |
delegate(java.lang.Long flowId,
int levelsUp,
java.lang.String actorId,
java.lang.String delegateActorId,
org.jbpm.workflow.execution.ExecutionComponent executionComponent)
|
void |
deployProcess(java.lang.String archiveLocation)
|
void |
deployProcessIfNotPresent(java.lang.String processName,
java.lang.String archiveLocation)
|
org.jbpm.workflow.execution.Flow |
getFlow(int levelsUp,
java.lang.Long rootFlowId,
org.jbpm.workflow.execution.ExecutionComponent executionComponent)
finds a flow upon which the current authenticated user has to act. |
java.util.Collection |
performActivity(java.lang.String actorId,
java.lang.Long flowId,
int levelsUp,
java.util.Map attributeValues,
org.jbpm.workflow.execution.ExecutionComponent executionComponent)
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
loginUtil
private org.jbpm.util.client.LoginUtil loginUtil
instance
private static final org.jbpm.util.test.ProcessDeployer instance
serviceLocator
private static final org.jbpm.util.client.ServiceLocator serviceLocator
TestUtil
public TestUtil()
deployProcess
public void deployProcess(java.lang.String archiveLocation)
deployProcessIfNotPresent
public void deployProcessIfNotPresent(java.lang.String processName,
java.lang.String archiveLocation)
getFlow
public org.jbpm.workflow.execution.Flow getFlow(int levelsUp,
java.lang.Long rootFlowId,
org.jbpm.workflow.execution.ExecutionComponent executionComponent)
- finds a flow upon which the current authenticated user has to act.
It searches the flow in the current authenticated user's tasklist for which the levelsUp-parent has rootFlowId.
performActivity
public java.util.Collection performActivity(java.lang.String actorId,
java.lang.Long flowId,
int levelsUp,
java.util.Map attributeValues,
org.jbpm.workflow.execution.ExecutionComponent executionComponent)
delegate
public void delegate(java.lang.Long flowId,
int levelsUp,
java.lang.String actorId,
java.lang.String delegateActorId,
org.jbpm.workflow.execution.ExecutionComponent executionComponent)
cancelFlow
public void cancelFlow(java.lang.String actorId,
java.lang.Long flowId,
int levelsUp,
org.jbpm.workflow.execution.ExecutionComponent executionComponent)
cancelInstance
public void cancelInstance(java.lang.String actorId,
java.lang.Long processInstanceId,
org.jbpm.workflow.execution.ExecutionComponent executionComponent)