public class ProcActionsFrame.Initializer
extends java.lang.Object
Constructor and Description |
---|
Initializer() |
Modifier and Type | Method and Description |
---|---|
void |
init(ProcInstance procInstance)
Method initializes the UI for actions which are available for the current user with the specified process
instance.
|
void |
init(java.lang.String processCode,
com.haulmont.cuba.core.entity.Entity entity)
The method tries to find a process instance by the specified process code and the entity reference.
|
ProcActionsFrame.Initializer |
setAfterCancelProcessListener(ProcAction.AfterActionListener afterCancelProcessListener) |
ProcActionsFrame.Initializer |
setAfterClaimTaskListener(ProcAction.AfterActionListener afterClaimTaskListener) |
ProcActionsFrame.Initializer |
setAfterCompleteTaskListener(ProcAction.AfterActionListener afterCompleteTaskListener) |
ProcActionsFrame.Initializer |
setAfterStartProcessListener(ProcAction.AfterActionListener afterStartProcessListener) |
ProcActionsFrame.Initializer |
setBeforeCancelProcessPredicate(ProcAction.BeforeActionPredicate beforeCancelProcessPredicate) |
ProcActionsFrame.Initializer |
setBeforeClaimTaskPredicate(ProcAction.BeforeActionPredicate beforeClaimTaskPredicate) |
ProcActionsFrame.Initializer |
setBeforeCompleteTaskPredicate(ProcAction.BeforeActionPredicate beforeCompleteTaskPredicate) |
ProcActionsFrame.Initializer |
setBeforeStartProcessPredicate(ProcAction.BeforeActionPredicate predicate) |
ProcActionsFrame.Initializer |
setButtonWidth(java.lang.String buttonWidth) |
ProcActionsFrame.Initializer |
setCancelProcessEnabled(boolean cancelProcessEnabled) |
ProcActionsFrame.Initializer |
setClaimTaskEnabled(boolean claimTaskEnabled) |
ProcActionsFrame.Initializer |
setCompleteTaskActionProcessVariablesSupplier(java.util.function.Supplier<java.util.Map<java.lang.String,java.lang.Object>> completeTaskActionProcessVariablesSupplier)
Sets the process variables
Supplier for all complete task actions. |
ProcActionsFrame.Initializer |
setCompleteTaskActionScreenParametersSupplier(java.util.function.Supplier<java.util.Map<java.lang.String,java.lang.Object>> completeTaskActionScreenParametersSupplier)
Sets the screen parameters
Supplier for the process form of complete task actions. |
ProcActionsFrame.Initializer |
setCompleteTaskEnabled(boolean completeTaskEnabled) |
ProcActionsFrame.Initializer |
setStartProcessActionProcessVariablesSupplier(java.util.function.Supplier<java.util.Map<java.lang.String,java.lang.Object>> startProcessActionProcessVariablesSupplier)
Sets the process variables
Supplier for the start process action. |
ProcActionsFrame.Initializer |
setStartProcessActionScreenParametersSupplier(java.util.function.Supplier<java.util.Map<java.lang.String,java.lang.Object>> startProcessActionScreenParametersSupplier)
Sets the screen parameters
Supplier for the process form of the start process action. |
ProcActionsFrame.Initializer |
setStartProcessEnabled(boolean startProcessEnabled) |
ProcActionsFrame.Initializer |
setTaskInfoEnabled(boolean taskInfoEnabled) |
ProcActionsFrame.Initializer |
standard()
Performs the standard initialization:
Commits the editor before each action is appliedshows notification and re-intializes the
procActionsFrame after the action is applied
|
public ProcActionsFrame.Initializer setBeforeStartProcessPredicate(ProcAction.BeforeActionPredicate predicate)
public ProcActionsFrame.Initializer setBeforeCompleteTaskPredicate(ProcAction.BeforeActionPredicate beforeCompleteTaskPredicate)
public ProcActionsFrame.Initializer setBeforeClaimTaskPredicate(ProcAction.BeforeActionPredicate beforeClaimTaskPredicate)
public ProcActionsFrame.Initializer setBeforeCancelProcessPredicate(ProcAction.BeforeActionPredicate beforeCancelProcessPredicate)
public ProcActionsFrame.Initializer setAfterStartProcessListener(ProcAction.AfterActionListener afterStartProcessListener)
public ProcActionsFrame.Initializer setAfterCompleteTaskListener(ProcAction.AfterActionListener afterCompleteTaskListener)
public ProcActionsFrame.Initializer setAfterClaimTaskListener(ProcAction.AfterActionListener afterClaimTaskListener)
public ProcActionsFrame.Initializer setAfterCancelProcessListener(ProcAction.AfterActionListener afterCancelProcessListener)
public ProcActionsFrame.Initializer setStartProcessEnabled(boolean startProcessEnabled)
public ProcActionsFrame.Initializer setCancelProcessEnabled(boolean cancelProcessEnabled)
public ProcActionsFrame.Initializer setCompleteTaskEnabled(boolean completeTaskEnabled)
public ProcActionsFrame.Initializer setClaimTaskEnabled(boolean claimTaskEnabled)
public ProcActionsFrame.Initializer setTaskInfoEnabled(boolean taskInfoEnabled)
public ProcActionsFrame.Initializer setButtonWidth(java.lang.String buttonWidth)
public ProcActionsFrame.Initializer setStartProcessActionProcessVariablesSupplier(java.util.function.Supplier<java.util.Map<java.lang.String,java.lang.Object>> startProcessActionProcessVariablesSupplier)
Supplier
for the start process action. The supplier should return a map
with the process variables which will be set to the Activiti process instance when the StartProcessAction
is performed.public ProcActionsFrame.Initializer setCompleteTaskActionProcessVariablesSupplier(java.util.function.Supplier<java.util.Map<java.lang.String,java.lang.Object>> completeTaskActionProcessVariablesSupplier)
Supplier
for all complete task actions. The supplier should return a map
with the process variables which will be set to the Activiti process instance when the CompleteProcTaskAction
is performed. If you need different variables suppliers for different actions, then
you may get a list of actions with the ProcActionsFrame.getCompleteProcTaskActions()
, find the required action and
use the ProcAction.setProcessVariablesSupplier(Supplier)
method.public ProcActionsFrame.Initializer setStartProcessActionScreenParametersSupplier(java.util.function.Supplier<java.util.Map<java.lang.String,java.lang.Object>> startProcessActionScreenParametersSupplier)
Supplier
for the process form of the start process action. The supplier
should return a map with the screen parameters which will be passed to the process from screen.public ProcActionsFrame.Initializer setCompleteTaskActionScreenParametersSupplier(java.util.function.Supplier<java.util.Map<java.lang.String,java.lang.Object>> completeTaskActionScreenParametersSupplier)
Supplier
for the process form of complete task actions. The supplier
should return a map with the screen parameters which will be passed to the process from screen.public ProcActionsFrame.Initializer standard()
public void init(java.lang.String processCode, com.haulmont.cuba.core.entity.Entity entity)
processCode
- process definition codeentity
- an entitypublic void init(ProcInstance procInstance)
procInstance
- a process instance