public class WorkflowTransitionTrigger
extends java.lang.Object
WorkflowEngine
Modifier and Type | Method and Description |
---|---|
void |
clean()
This feature allows you to optimize the treatment by releasing including
memory.
|
void |
completeMultipleTransition()
Complete a multiple transition return boolean True if the completion is a
succes
|
WorkflowResult |
getResult()
Get the result of triggering
|
com.mega.modeling.api.MegaObject |
getWorkflowInstance()
Get the instance of workflow
|
com.mega.modeling.api.MegaObject |
getWorkflowSubject()
Get the subject
|
void |
setBatchMode(boolean bBatchMode)
Set the batch mode for the instanciation
|
void |
setNextUserForTransition(com.mega.modeling.api.MegaObject ojobjWorkflowTransitionDescription,
com.mega.modeling.api.MegaObject ojobjNextWorkflowTransitionDescription,
com.mega.modeling.api.MegaCollection mgcolUser)
Set the next users to trigger a next transition.
|
void |
setPermissionPropertyForTransition(com.mega.modeling.api.MegaObject ojobjWorkflowTransitionDescription,
java.lang.String strPropertyId,
java.lang.String strPermission)
Specify the permissions for the properties of transition to trigger.
By default properties are updatable and not displayed. |
void |
setPropertyForTransition(com.mega.modeling.api.MegaObject ojobjWorkflowTransitionDescription,
java.lang.String strPropertyId,
java.lang.Object value)
Assign values for the properties of transition to trigger.
|
boolean |
stopTransition()
Stop a workflow instance.
The function returns an empty mega object if the s failed otherwise it returns the new workflow instance |
com.mega.modeling.api.MegaObject |
triggerTransition(com.mega.modeling.api.MegaObject mgobjWorkflowTransition)
Trigger a transition of a workflow instance.
The function returns an empty mega object if the triggering failed otherwise it returns the new workflow instance |
public void clean()
public com.mega.modeling.api.MegaObject triggerTransition(com.mega.modeling.api.MegaObject mgobjWorkflowTransition)
mgobjWorkflowTransition
- workflow transition to triggerpublic void setNextUserForTransition(com.mega.modeling.api.MegaObject ojobjWorkflowTransitionDescription, com.mega.modeling.api.MegaObject ojobjNextWorkflowTransitionDescription, com.mega.modeling.api.MegaCollection mgcolUser) throws com.mega.modeling.api.MegaException
ojobjWorkflowTransitionDescription
- workflow transition to triggerojobjNextWorkflowTransitionDescription
- next workflow transition to
triggermgcolUser
- next userscom.mega.modeling.api.MegaException
public void setPropertyForTransition(com.mega.modeling.api.MegaObject ojobjWorkflowTransitionDescription, java.lang.String strPropertyId, java.lang.Object value) throws com.mega.modeling.api.MegaException
ojobjWorkflowTransitionDescription
- workflow transition to triggerstrPropertyId
- property to assign (id)value
- value of a propertycom.mega.modeling.api.MegaException
public void setPermissionPropertyForTransition(com.mega.modeling.api.MegaObject ojobjWorkflowTransitionDescription, java.lang.String strPropertyId, java.lang.String strPermission) throws com.mega.modeling.api.MegaException
ojobjWorkflowTransitionDescription
- workflow transition to triggerstrPropertyId
- property to assign (id)strPermission
- permission of a property (R=read
only,U=updatable,M=Mandatory,empty=no display)com.mega.modeling.api.MegaException
public void setBatchMode(boolean bBatchMode)
bBatchMode
- True for specify the batch modepublic void completeMultipleTransition() throws com.mega.modeling.api.MegaException
com.mega.modeling.api.MegaException
public WorkflowResult getResult()
public com.mega.modeling.api.MegaObject getWorkflowSubject()
public com.mega.modeling.api.MegaObject getWorkflowInstance()
public boolean stopTransition() throws com.mega.modeling.api.MegaException
com.mega.modeling.api.MegaException