public class WorkflowContextEngine extends java.lang.Object implements IWorkflowContextEngine
Constructor and Description |
---|
WorkflowContextEngine(com.mega.modeling.workflowengine.wrapper.CWrapperWorkflowContext jvobjContext) |
Modifier and Type | Method and Description |
---|---|
com.mega.modeling.api.MegaCollection |
getActivatorParticipantsFromStatusInstance(com.mega.modeling.api.MegaObject mgobjWorkflowStatusInstance,
com.mega.modeling.api.MegaObject mgobjActivator) |
com.mega.modeling.api.MegaCollection |
getActivatorParticipantsFromTransitionInstance(com.mega.modeling.api.MegaObject mgobjTransitionInstance,
com.mega.modeling.api.MegaObject mgobjActivator) |
com.mega.modeling.api.MegaCollection |
getAssignedPersonsFromTransitionInstance(com.mega.modeling.api.MegaObject mgobjWorkflowTransitionInstance)
Returns the collection of persons assigned for a workflow transition
instance
|
com.mega.modeling.api.MegaObject |
getCurrentWorkflowStatusInstance()
Get current workflow status instance description.
|
com.mega.modeling.api.MegaObject |
getCurrentWorkflowStatusInstanceDescription()
Get current workflow status instance description.
|
com.mega.modeling.api.MegaRoot |
getRoot()
Get root.
|
com.mega.modeling.api.MegaCollection |
getTransition(java.lang.String strCount)
Returns the workflow transition instances (read-only informal
MegaCollection) corresponding to the "strCount" triggered transition
where strCount is first, second, third etc.
|
int |
getTransitionCount()
Retrieves the number of triggered transitions of a workflow instance
|
com.mega.modeling.api.MegaCollection |
getTransitionInstances(java.lang.String strTransitionInstancesParam)
Get workflow transition instances description.
|
com.mega.modeling.api.MegaObject |
getWorkflowDefinition()
Get workflow definition identifier.
|
java.lang.String |
getWorkflowDefinitionID()
Get workflow definition identifier.
|
com.mega.modeling.api.MegaObject |
getWorkflowInstance()
Get workflow instance description.
|
com.mega.modeling.api.MegaObject |
getWorkflowInstanceDescription()
Get workflow instance description.
|
com.mega.modeling.api.MegaObject |
getWorkflowSubject()
Get subject identifier.
|
java.lang.String |
getWorkflowSubjectID()
Get subject identifier.
|
boolean |
isBatchMode()
Test if it's a mode batch.
|
public WorkflowContextEngine(com.mega.modeling.workflowengine.wrapper.CWrapperWorkflowContext jvobjContext)
public com.mega.modeling.api.MegaRoot getRoot()
getRoot
in interface IWorkflowContextEngine
public java.lang.String getWorkflowDefinitionID()
getWorkflowDefinitionID
in interface IWorkflowContextEngine
public com.mega.modeling.api.MegaObject getWorkflowDefinition()
getWorkflowDefinition
in interface IWorkflowContextEngine
public java.lang.String getWorkflowSubjectID()
getWorkflowSubjectID
in interface IWorkflowContextEngine
public com.mega.modeling.api.MegaObject getWorkflowSubject()
getWorkflowSubject
in interface IWorkflowContextEngine
public boolean isBatchMode()
isBatchMode
in interface IWorkflowContextEngine
public com.mega.modeling.api.MegaObject getWorkflowInstance()
getWorkflowInstance
in interface IWorkflowContextEngine
public com.mega.modeling.api.MegaObject getWorkflowInstanceDescription()
getWorkflowInstanceDescription
in interface IWorkflowContextEngine
public com.mega.modeling.api.MegaObject getCurrentWorkflowStatusInstance() throws com.mega.modeling.api.MegaException
getCurrentWorkflowStatusInstance
in interface IWorkflowContextEngine
com.mega.modeling.api.MegaException
public com.mega.modeling.api.MegaObject getCurrentWorkflowStatusInstanceDescription() throws com.mega.modeling.api.MegaException
getCurrentWorkflowStatusInstanceDescription
in interface IWorkflowContextEngine
com.mega.modeling.api.MegaException
public com.mega.modeling.api.MegaCollection getTransitionInstances(java.lang.String strTransitionInstancesParam) throws com.mega.modeling.api.MegaException
getTransitionInstances
in interface IWorkflowContextEngine
strTransitionInstancesParam
- String describing the requested transition instances. The
string is the concatenation of 3 possible fields: "Current",
"Previous" or "Next" (to get the current, previous or next
transition instances) "Transition=strMegaField" (where
strMegaField is the MegaField of a Workflow Transition)
"Iteration=intIteration" (where intIteration is an integer
corresponding to the transition "Transition=strMegaField" )
"Iteration=1" means the most recent "Transition=strMegaField",
"Iteration=2" means the previous one etc. For example :
GetTransitionInstances("Current") returns the current transition
workflow transition instances GetTransitionInstances("Next")
returns the next transition workflow transition instances
GetTransitionInstances("Previous") returns the previous transition
workflow transtion instances
GetTransitionInstances("Previous,Transition=~vtBtb)juFH)T[To be
closed]) returns the previous workflow transition instances
corresponding to the transition "To be closed"
GetTransitionInstances
("Previous,Transition=~vtBtb)juFH)T[To be closed],Iteration=2")
returns the previous workflow transition instances
corresponding to the second most recent transition "To be closed"
GetTransitionInstances
("Next,Transition=~vtBtb)juFH)T[To be closed]") returns the next
workflow transition instance corresponding to the transition
"To be closed" com.mega.modeling.api.MegaException
public int getTransitionCount()
IWorkflowContextEngine
getTransitionCount
in interface IWorkflowContextEngine
public com.mega.modeling.api.MegaCollection getTransition(java.lang.String strCount) throws com.mega.modeling.api.MegaException
IWorkflowContextEngine
getTransition
in interface IWorkflowContextEngine
strCount
- a String "Count=X" where X in an integercom.mega.modeling.api.MegaException
public com.mega.modeling.api.MegaCollection getActivatorParticipantsFromTransitionInstance(com.mega.modeling.api.MegaObject mgobjTransitionInstance, com.mega.modeling.api.MegaObject mgobjActivator)
public com.mega.modeling.api.MegaCollection getActivatorParticipantsFromStatusInstance(com.mega.modeling.api.MegaObject mgobjWorkflowStatusInstance, com.mega.modeling.api.MegaObject mgobjActivator) throws com.mega.modeling.api.MegaException
com.mega.modeling.api.MegaException
public com.mega.modeling.api.MegaCollection getAssignedPersonsFromTransitionInstance(com.mega.modeling.api.MegaObject mgobjWorkflowTransitionInstance) throws com.mega.modeling.api.MegaException
IWorkflowContextEngine
getAssignedPersonsFromTransitionInstance
in interface IWorkflowContextEngine
mgobjWorkflowTransitionInstance
- MegaObject corresponding to a workflow transition instancecom.mega.modeling.api.MegaException