com.ibm.workplace.wcm.api.custom
Interface ContinueDirectiveParams

All Superinterfaces:
DirectiveParams, java.io.Serializable
All Known Implementing Classes:
WCM_ContinueDirectiveParams

public interface ContinueDirectiveParams
extends DirectiveParams

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.

Since:
8.5

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

setRequireRefetch

void setRequireRefetch(boolean requireRefetch)
Specifies whether the Continue Directive should perform an item refetch.(default: false)

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.

Parameters:
requireRefetch - true if an item refetch should be performed. false otherwise

isRequireRefetch

boolean isRequireRefetch()
Indicates if an item refetch has been requested

Returns:
true if an item refetch has been requested, false otherwise