Package com.axelor.workflow.plan
Record Class WorkflowPlan.TaskStep
java.lang.Object
java.lang.Record
com.axelor.workflow.plan.WorkflowPlan.TaskStep
- All Implemented Interfaces:
WorkflowPlan.Step
- Enclosing class:
WorkflowPlan
public static record WorkflowPlan.TaskStep(String id, String title, String description, String assignee, String user, String role, String group, CommentMode commentMode, String when, boolean autoComplete, boolean allowReject, boolean allowForceComplete, boolean allowCancel, String blocked, Integer maxVisits, String next, List<WorkflowPlan.Boundary> boundaries)
extends Record
implements WorkflowPlan.Step
A human task. The walk parks here and resumes from
next when it completes. when
gates approval; with autoComplete it also completes the task by itself. The
allow* flags say whether reject, force-complete and cancel exist at all; when never
gates them.-
Constructor Summary
ConstructorsConstructorDescriptionTaskStep(String id, String title, String description, String assignee, String user, String role, String group, CommentMode commentMode, String when, boolean autoComplete, boolean allowReject, boolean allowForceComplete, boolean allowCancel, String blocked, Integer maxVisits, String next, List<WorkflowPlan.Boundary> boundaries) Creates an instance of aTaskSteprecord class. -
Method Summary
Modifier and TypeMethodDescriptionbooleanReturns the value of theallowCancelrecord component.booleanReturns the value of theallowForceCompleterecord component.booleanReturns the value of theallowRejectrecord component.assignee()Returns the value of theassigneerecord component.booleanReturns the value of theautoCompleterecord component.blocked()Returns the value of theblockedrecord component.Returns the value of theboundariesrecord component.Returns the value of thecommentModerecord component.Returns the value of thedescriptionrecord component.final booleanIndicates whether some other object is "equal to" this one.group()Returns the value of thegrouprecord component.final inthashCode()Returns a hash code value for this object.id()Returns the value of theidrecord component.Returns the value of themaxVisitsrecord component.next()Returns the value of thenextrecord component.role()Returns the value of therolerecord component.targets()The ordinary edge and every boundary's, so the compiler sees boundary targets as reachable.title()Returns the value of thetitlerecord component.final StringtoString()Returns a string representation of this record class.type()user()Returns the value of theuserrecord component.when()Returns the value of thewhenrecord component.Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface com.axelor.workflow.plan.WorkflowPlan.Step
async, catching
-
Constructor Details
-
TaskStep
public TaskStep(String id, String title, String description, String assignee, String user, String role, String group, CommentMode commentMode, String when, boolean autoComplete, boolean allowReject, boolean allowForceComplete, boolean allowCancel, String blocked, Integer maxVisits, String next, List<WorkflowPlan.Boundary> boundaries) Creates an instance of aTaskSteprecord class.- Parameters:
id- the value for theidrecord componenttitle- the value for thetitlerecord componentdescription- the value for thedescriptionrecord componentassignee- the value for theassigneerecord componentuser- the value for theuserrecord componentrole- the value for therolerecord componentgroup- the value for thegrouprecord componentcommentMode- the value for thecommentModerecord componentwhen- the value for thewhenrecord componentautoComplete- the value for theautoCompleterecord componentallowReject- the value for theallowRejectrecord componentallowForceComplete- the value for theallowForceCompleterecord componentallowCancel- the value for theallowCancelrecord componentblocked- the value for theblockedrecord componentmaxVisits- the value for themaxVisitsrecord componentnext- the value for thenextrecord componentboundaries- the value for theboundariesrecord component
-
-
Method Details
-
type
- Specified by:
typein interfaceWorkflowPlan.Step
-
targets
The ordinary edge and every boundary's, so the compiler sees boundary targets as reachable.- Specified by:
targetsin interfaceWorkflowPlan.Step
-
toString
Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components. -
hashCode
public final int hashCode()Returns a hash code value for this object. The value is derived from the hash code of each of the record components. -
equals
Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with '=='. -
id
Returns the value of theidrecord component.- Specified by:
idin interfaceWorkflowPlan.Step- Returns:
- the value of the
idrecord component
-
title
Returns the value of thetitlerecord component.- Returns:
- the value of the
titlerecord component
-
description
Returns the value of thedescriptionrecord component.- Returns:
- the value of the
descriptionrecord component
-
assignee
Returns the value of theassigneerecord component.- Returns:
- the value of the
assigneerecord component
-
user
Returns the value of theuserrecord component.- Returns:
- the value of the
userrecord component
-
role
Returns the value of therolerecord component.- Returns:
- the value of the
rolerecord component
-
group
Returns the value of thegrouprecord component.- Returns:
- the value of the
grouprecord component
-
commentMode
Returns the value of thecommentModerecord component.- Returns:
- the value of the
commentModerecord component
-
when
Returns the value of thewhenrecord component.- Returns:
- the value of the
whenrecord component
-
autoComplete
public boolean autoComplete()Returns the value of theautoCompleterecord component.- Returns:
- the value of the
autoCompleterecord component
-
allowReject
public boolean allowReject()Returns the value of theallowRejectrecord component.- Returns:
- the value of the
allowRejectrecord component
-
allowForceComplete
public boolean allowForceComplete()Returns the value of theallowForceCompleterecord component.- Returns:
- the value of the
allowForceCompleterecord component
-
allowCancel
public boolean allowCancel()Returns the value of theallowCancelrecord component.- Returns:
- the value of the
allowCancelrecord component
-
blocked
Returns the value of theblockedrecord component.- Returns:
- the value of the
blockedrecord component
-
maxVisits
Returns the value of themaxVisitsrecord component.- Returns:
- the value of the
maxVisitsrecord component
-
next
Returns the value of thenextrecord component.- Returns:
- the value of the
nextrecord component
-
boundaries
Returns the value of theboundariesrecord component.- Specified by:
boundariesin interfaceWorkflowPlan.Step- Returns:
- the value of the
boundariesrecord component
-