@UiController(value="bpm_ProcActionsFragment")
@UiDescriptor(value="proc-actions-fragment.xml")
public class ProcActionsFragment
extends com.haulmont.cuba.gui.screen.ScreenFragment
This fragment is used for displaying process actions available for the current user. Depending of the process instance associated with the fragment, the fragment may display buttons that start the process, complete process actions or claim the process task.
The fragment must be initialized with the ProcActionsFragment.Initializer
instance. Use the initializer()
method to get
the instance of the initializer object. After setting all required listeners and predicates you can initialize the
fragment in two ways:
ProcDefinition
and entity reference using the ProcActionsFragment.Initializer.init(String, Entity)
methodProcInstance
object using the ProcActionsFragment.Initializer.init(ProcInstance)
methodProcActionsFragment.Initializer.init(String, Entity)
and ProcActionsFragment.Initializer.init(ProcInstance)
methods for detailsModifier and Type | Class and Description |
---|---|
class |
ProcActionsFragment.Initializer
Class is used to initialize the fragment.
|
com.haulmont.cuba.gui.screen.ScreenFragment.AfterInitEvent, com.haulmont.cuba.gui.screen.ScreenFragment.AttachEvent, com.haulmont.cuba.gui.screen.ScreenFragment.DetachEvent, com.haulmont.cuba.gui.screen.ScreenFragment.InitEvent
Constructor and Description |
---|
ProcActionsFragment() |
Modifier and Type | Method and Description |
---|---|
void |
addActionButton(com.haulmont.cuba.gui.components.Button button)
Method adds a button to the end of the action buttons box.
|
CancelProcessAction |
getCancelProcessAction() |
ClaimProcTaskAction |
getClaimProcTaskAction() |
java.util.List<CompleteProcTaskAction> |
getCompleteProcTaskActions() |
ProcInstance |
getProcInstance() |
StartProcessAction |
getStartProcessAction() |
ProcActionsFragment.Initializer |
initializer()
Returns a new instance of fragment initializer
|
@Nullable public StartProcessAction getStartProcessAction()
public java.util.List<CompleteProcTaskAction> getCompleteProcTaskActions()
@Nullable public ClaimProcTaskAction getClaimProcTaskAction()
@Nullable public CancelProcessAction getCancelProcessAction()
public void addActionButton(com.haulmont.cuba.gui.components.Button button)
public ProcActionsFragment.Initializer initializer()
public ProcInstance getProcInstance()