public class CommonWorkflowModule extends Object
Constructor and Description |
---|
CommonWorkflowModule() |
Modifier and Type | Method and Description |
---|---|
static void |
addProcessInstanceVariable(long processInstanceId,
String name,
Object value)
Add Process Instance Variable
|
static void |
addTaskInstanceComment(String user,
long taskInstanceId,
String message)
Add Task Instance Comment
|
static void |
addTaskInstanceVariable(long taskInstanceId,
String name,
Object value)
Add Task Instance Variable Esto creo que sobra pq no se puede hacer
|
static void |
addTokenComment(String user,
long tokenId,
String message)
Add Token Comment
|
static void |
deleteProcessDefinition(long processDefinitionId)
Delete Process Definition
|
static void |
deleteProcessInstance(long processInstanceId)
Delete Process Instance
|
static void |
deleteProcessInstanceVariable(long processInstanceId,
String name)
Delete Process Instance
|
static void |
deleteTaskInstanceVariable(long taskInstanceId,
String name)
Delete Task Instance Variable
|
static void |
endProcessInstance(long processInstanceId)
End Process Instance
|
static void |
endTaskInstance(long taskInstanceId,
String transitionName)
End Task Instance
|
static void |
endToken(long tokenId)
End Token
|
static List<ProcessDefinition> |
findAllProcessDefinitions()
Find All Process Definition
|
static List<ProcessDefinition> |
findAllProcessDefinitionVersions(String name)
Find All Process Definition Versions
|
static ProcessDefinition |
findLastProcessDefinition(String name) |
static List<ProcessDefinition> |
findLatestProcessDefinitions()
Find Latest Process Definitions
|
static List<TaskInstance> |
findPooledTaskInstances(String user)
Find Pooled Task Instances
|
static List<ProcessInstance> |
findProcessInstances(long processDefinitionId)
Find Process Instance
|
static List<TaskInstance> |
findTaskInstances(long processInstanceId)
Find Task Instances
|
static List<TaskInstance> |
findUserTaskInstances(String user)
Find User Task Instances
|
static ProcessDefinition |
getProcessDefinition(long processDefinitionId)
Get Process Definition
|
static Map<String,List<FormElement>> |
getProcessDefinitionForms(long processDefinitionId)
Get Process Definition Forms
|
static byte[] |
getProcessDefinitionImage(long processDefinitionId,
String node)
Get Process Definition Image
|
static ProcessInstance |
getProcessInstance(long processInstanceId)
Get Process Instance
|
static TaskInstance |
getTaskInstance(long taskInstanceId)
Get Task Instance
|
static Token |
getToken(long tokenId)
Get Token
|
static void |
registerProcessDefinition(InputStream is)
Register Process Definition
|
static void |
resumeProcessInstance(long processInstanceId)
Resume Process Instance
|
static void |
resumeTaskInstance(long taskInstanceId)
Resume Task Instance
|
static void |
resumeToken(long tokenId)
Resume Token
|
static ProcessInstance |
runProcessDefinition(String user,
long processDefinitionId,
String uuid,
List<FormElement> variables)
Start Process Definition
|
static ProcessInstance |
sendProcessInstanceSignal(long processInstanceId,
String transitionName)
Send Process Instance Signal
|
static Token |
sendTokenSignal(long tokenId,
String transitionName)
Send Token Signal
|
static void |
setTaskInstanceActorId(long taskInstanceId,
String actorId)
Set Task Instance Actor Id
|
static void |
setTaskInstanceValues(long taskInstanceId,
String transitionName,
List<FormElement> values)
Set Task Instance Values
|
static void |
setTokenNode(long tokenId,
String nodeName)
Set Token Node
|
static void |
startTaskInstance(long taskInstanceId)
Start Task Instance
|
static void |
suspendProcessInstance(long processInstanceId)
Suspend (pause) Process Instance
|
static void |
suspendTaskInstance(long taskInstanceId)
Suspend (pause) Task Instance
|
static void |
suspendToken(long tokenId)
Suspend (pause) Token
|
public static void registerProcessDefinition(InputStream is) throws WorkflowException, ParseException, IOException
public static void deleteProcessDefinition(long processDefinitionId) throws WorkflowException
WorkflowException
public static ProcessDefinition getProcessDefinition(long processDefinitionId) throws WorkflowException
WorkflowException
public static byte[] getProcessDefinitionImage(long processDefinitionId, String node) throws WorkflowException
WorkflowException
public static Map<String,List<FormElement>> getProcessDefinitionForms(long processDefinitionId) throws ParseException
ParseException
public static ProcessInstance runProcessDefinition(String user, long processDefinitionId, String uuid, List<FormElement> variables) throws WorkflowException
WorkflowException
public static ProcessInstance sendProcessInstanceSignal(long processInstanceId, String transitionName) throws WorkflowException
WorkflowException
public static void endProcessInstance(long processInstanceId) throws WorkflowException
WorkflowException
public static void deleteProcessInstance(long processInstanceId) throws WorkflowException
WorkflowException
public static List<ProcessInstance> findProcessInstances(long processDefinitionId) throws WorkflowException
WorkflowException
public static List<ProcessDefinition> findAllProcessDefinitions() throws WorkflowException
WorkflowException
public static List<ProcessDefinition> findLatestProcessDefinitions() throws WorkflowException
WorkflowException
public static ProcessDefinition findLastProcessDefinition(String name) throws WorkflowException
WorkflowException
public static List<ProcessDefinition> findAllProcessDefinitionVersions(String name) throws WorkflowException
WorkflowException
public static ProcessInstance getProcessInstance(long processInstanceId) throws WorkflowException
WorkflowException
public static void suspendProcessInstance(long processInstanceId) throws WorkflowException
WorkflowException
public static void resumeProcessInstance(long processInstanceId) throws WorkflowException
WorkflowException
public static void addProcessInstanceVariable(long processInstanceId, String name, Object value) throws WorkflowException
WorkflowException
public static void deleteProcessInstanceVariable(long processInstanceId, String name) throws WorkflowException
WorkflowException
public static List<TaskInstance> findUserTaskInstances(String user) throws WorkflowException
WorkflowException
public static List<TaskInstance> findPooledTaskInstances(String user) throws WorkflowException
WorkflowException
public static List<TaskInstance> findTaskInstances(long processInstanceId) throws WorkflowException
WorkflowException
public static void setTaskInstanceValues(long taskInstanceId, String transitionName, List<FormElement> values) throws WorkflowException
WorkflowException
public static void addTaskInstanceComment(String user, long taskInstanceId, String message) throws WorkflowException
WorkflowException
public static TaskInstance getTaskInstance(long taskInstanceId) throws WorkflowException
WorkflowException
public static void setTaskInstanceActorId(long taskInstanceId, String actorId) throws WorkflowException
WorkflowException
public static void addTaskInstanceVariable(long taskInstanceId, String name, Object value) throws WorkflowException
WorkflowException
public static void deleteTaskInstanceVariable(long taskInstanceId, String name) throws WorkflowException
WorkflowException
public static void startTaskInstance(long taskInstanceId) throws WorkflowException
WorkflowException
public static void endTaskInstance(long taskInstanceId, String transitionName) throws WorkflowException
WorkflowException
public static void suspendTaskInstance(long taskInstanceId) throws WorkflowException
WorkflowException
public static void resumeTaskInstance(long taskInstanceId) throws WorkflowException
WorkflowException
public static Token getToken(long tokenId) throws WorkflowException
WorkflowException
public static void addTokenComment(String user, long tokenId, String message) throws WorkflowException
WorkflowException
public static void suspendToken(long tokenId) throws WorkflowException
WorkflowException
public static void resumeToken(long tokenId) throws WorkflowException
WorkflowException
public static Token sendTokenSignal(long tokenId, String transitionName) throws WorkflowException
WorkflowException
public static void setTokenNode(long tokenId, String nodeName) throws WorkflowException
WorkflowException
public static void endToken(long tokenId) throws WorkflowException
WorkflowException
Copyright © 2016. All rights reserved.