public class OrJoinManager extends Object
Constructor and Description |
---|
OrJoinManager() |
Modifier and Type | Method and Description |
---|---|
void |
addOrJoin(Integer orJoinIndex)
Register an OR-join
|
Integer |
getWaitingActivityForOr(Integer orIndex,
BitSet processState)
Returns the index of the activity for which an OR-join in waiting for.
|
void |
init()
Initializes the component.
|
boolean |
isOrJoinWaitingForActivity(int activityIndex,
String activityId)
Returns if OR-join is waiting for an activity to be completed.
|
void |
registerWaitingOrJoin(String activityInstanceId,
Integer orIndex)
Registers an OR join to be waiting for some activity to be completed in the
process state
|
void |
setEdgeIndexes(Map<Graph.Edge,Integer> indexes)
Defines indexes for Edges (from process graph)
|
void |
setProcessHelper(IProcessModelParser helper)
Defines process model helper
|
void |
setSimulator(BPSimulator bpSimulator) |
Integer[] |
updateWaitingOrJoins(int activityIndex,
ProcessInstance processInstance)
Update global cache of activities that OR joins are waiting for
|
public void setProcessHelper(IProcessModelParser helper)
helper
- model helper to provide process graphpublic void addOrJoin(Integer orJoinIndex)
orJoinIndex
- index of the OR-join to registerpublic void setEdgeIndexes(Map<Graph.Edge,Integer> indexes)
indexes
- map of Edge to its indexpublic void setSimulator(BPSimulator bpSimulator)
public void init()
public Integer getWaitingActivityForOr(Integer orIndex, BitSet processState)
orIndex
- index of an OR-joinprocessState
- current process statepublic void registerWaitingOrJoin(String activityInstanceId, Integer orIndex)
activityInstanceId
- in format ProcessActivity.getInstanceId()orIndex
- activity index of an OR joinpublic Integer[] updateWaitingOrJoins(int activityIndex, ProcessInstance processInstance)
activityIndex
- activity indexprocessInstance
- process instancepublic boolean isOrJoinWaitingForActivity(int activityIndex, String activityId)
activityIndex
- index of an element to check if OR join is waiting for
it.activityId
- unique index of an OR-joinCopyright © 2020 Pivotal Software, Inc.. All rights reserved.