Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

org.jbpm.examples.test
Class TestUtil  view TestUtil download TestUtil.java

java.lang.Object
  extended byorg.jbpm.examples.test.TestUtil

public class TestUtil
extends java.lang.Object


Field Summary
private static org.jbpm.util.test.ProcessDeployer instance
           
private  org.jbpm.util.client.LoginUtil loginUtil
           
private static org.jbpm.util.client.ServiceLocator serviceLocator
           
 
Constructor Summary
TestUtil()
           
 
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
 

Field Detail

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
Constructor Detail

TestUtil

public TestUtil()
Method Detail

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)