public interface GraphNode
Modifier and Type | Interface and Description |
---|---|
static class |
GraphNode.Button |
static class |
GraphNode.State
The internal state of a node.
|
static class |
GraphNode.Transition |
Modifier and Type | Method and Description |
---|---|
void |
cancelTask()
Cancels the task if this is a suspended task node.
|
boolean |
canMerge()
Checks if the merge is ready to execute (enough input transitions are
present).
|
List<String> |
evaluateTaskAssignees()
Evaluates the task assignees from the taskAssigneesVar
|
List<GraphNode.Transition> |
evaluateTransitions()
Evaluates transition conditions and returns the transitions that were
true.
|
void |
executeChain(String chainId)
Executes an Automation chain in the context of this node.
|
void |
executeTransitionChain(GraphNode.Transition transition)
Executes an Automation chain in the context of this node for a given
transition
|
long |
getCanceledCount()
Gets the canceled count for this node.
|
DocumentModel |
getDocument()
Gets the document representing this node
|
String |
getId()
Get the node id.
|
String |
getInputChain()
Get input chain.
|
List<GraphNode.Transition> |
getInputTransitions()
Gets the input transitions.
|
String |
getOutputChain()
Get output chain.
|
List<GraphNode.Transition> |
getOutputTransitions()
Gets the output transitions.
|
GraphNode.State |
getState()
Get the node state.
|
List<String> |
getTaskAssignees()
Gets the task assignees
|
String |
getTaskAssigneesPermission()
Gets the permission to the granted to the actors on this task on the
document following the workflow
|
List<GraphNode.Button> |
getTaskButtons()
Gets the task buttons
|
String |
getTaskDirective()
Gets the task directive
|
Date |
getTaskDueDate()
Gets the due date
|
String |
getTaskLayout()
Gets the task layout
|
Map<String,Serializable> |
getVariables()
Gets a map containing the variables currently defined on this node
|
boolean |
hasTask()
Checks it this node has an associated user task.
|
void |
incrementCount()
Increments the execution counter for this node.
|
void |
initAddInputTransition(GraphNode.Transition transition)
Internal during graph init.
|
boolean |
isMerge()
Checks if this is a merge node.
|
boolean |
isStart()
Checks if this is the start node.
|
boolean |
isStop()
Checks if this is a stop node.
|
void |
setAllVariables(Map<String,Object> map)
Sets the graph and node variables.
|
void |
setButton(String status)
Sets the property button on the node, keeping the id of the last action
executed by the user on the associated task if any
|
void |
setCanceled()
Notes that this node was canceled (increments canceled counter).
|
void |
setState(GraphNode.State state)
Set the node state.
|
static final String MERGE_ONE
static final String MERGE_ALL
static final String PROP_NODE_ID
static final String PROP_TITLE
static final String PROP_START
static final String PROP_STOP
static final String PROP_MERGE
static final String PROP_COUNT
static final String PROP_CANCELED
static final String PROP_INPUT_CHAIN
static final String PROP_OUTPUT_CHAIN
static final String PROP_HAS_TASK
static final String PROP_VARIABLES_FACET
static final String PROP_TRANSITIONS
static final String PROP_TRANS_NAME
static final String PROP_TRANS_TARGET
static final String PROP_TRANS_CONDITION
static final String PROP_TRANS_RESULT
static final String PROP_TRANS_CHAIN
static final String PROP_TRANS_LABEL
static final String PROP_TASK_ASSIGNEES
static final String PROP_TASK_ASSIGNEES_VAR
static final String PROP_TASK_ASSIGNEES_PERMISSION
static final String PROP_TASK_DUE_DATE
static final String PROP_TASK_DIRECTIVE
static final String PROP_TASK_LAYOUT
static final String PROP_TASK_BUTTONS
static final String PROP_BTN_NAME
static final String PROP_BTN_LABEL
static final String PROP_BTN_FILTER
static final String PROP_NODE_X_COORDINATE
static final String PROP_NODE_Y_COORDINATE
static final String PROP_NODE_BUTTON
String getId()
GraphNode.State getState()
void setState(GraphNode.State state)
state
- the node stateboolean isStart()
boolean isStop()
boolean isMerge()
boolean canMerge()
void setCanceled()
long getCanceledCount()
void cancelTask()
String getInputChain()
String getOutputChain()
boolean hasTask()
Date getTaskDueDate()
String getTaskDirective()
String getTaskAssigneesPermission()
String getTaskLayout()
void incrementCount()
void executeChain(String chainId) throws DocumentRouteException
chainId
- the chainDocumentRouteException
void initAddInputTransition(GraphNode.Transition transition)
List<GraphNode.Transition> getInputTransitions()
List<GraphNode.Transition> getOutputTransitions()
void executeTransitionChain(GraphNode.Transition transition) throws DocumentRouteException
transition
- the transitionDocumentRouteException
List<GraphNode.Transition> evaluateTransitions() throws DocumentRouteException
Transitions are evaluated and ordered by transition id order.
DocumentRouteException
void setAllVariables(Map<String,Object> map)
map
- the map of variablesList<GraphNode.Button> getTaskButtons()
DocumentModel getDocument()
Map<String,Serializable> getVariables()
void setButton(String status)
status
- List<String> evaluateTaskAssignees() throws DocumentRouteException
DocumentRouteException
Copyright © 2012 Nuxeo SA. All Rights Reserved.