|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface ContinueDirectiveParams
The ContinueDirectiveParams
object is used to specify arguments or options to a 'Continue' Directive.
To create a new ContinueDirectiveParams
object call Directives.CONTINUE.createDirectiveParams()
and cast the returned object to ContinueDirectiveParams
To use a ContinueDirectiveParams
object call the CustomWorkflowActionService.createResult(Directive, String, DirectiveParams)
method instead of CustomWorkflowActionService.createResult(Directive, String)
to construct the workflow action result.
Note that this directive parameter allows a refetch flag (default: false) to be set to allow the item state to be refreshed in memory in case the persisted item state has changed during the custom action.
If the refetch flag is set, all in-memory changes made during the custom action must be saved by the end of the action, otherwise these changes will be lost after the item refetch. Also if the item is saved during an action, any changes made up to that point will not be available for rollback even if an eventual ROLLBACK directive is returned.
Method Summary | |
---|---|
boolean |
isRequireRefetch()
Indicates if an item refetch has been requested |
void |
setRequireRefetch(boolean requireRefetch)
Specifies whether the Continue Directive should perform an item refetch.(default: false) |
Method Detail |
---|
void setRequireRefetch(boolean requireRefetch)
This is useful when the persisted item state is changed during an action (e.g. a move) but the in-memory state have not been reflected.
Use with caution, if set, all changes made before and during the custom action must be explicitly saved by the action itself.
requireRefetch
- true if an item refetch should be performed. false otherwiseboolean isRequireRefetch()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |