public class UserTask extends WorkflowStep
Constructor and Description |
---|
UserTask(ComplexWorkflow parent,
java.lang.String code,
java.lang.String title,
java.lang.String taskmessage,
int delay,
boolean delayindays,
boolean notifyrecipientbymail,
TaskUserSelector selector)
creates a user task
|
Modifier and Type | Method and Description |
---|---|
UserTaskChoice |
getChoiceAtIndex(int index)
the task choice at the given index
|
java.lang.String |
getCode()
get the task code
|
int |
getDelay() |
int |
getTaskChoiceNumber() |
java.lang.String |
gettaskid() |
java.lang.String |
getTaskmessage() |
java.lang.String |
getTitle() |
TaskUserSelector |
getUserSelector() |
boolean |
isDelayInDays() |
void |
registerToParentWorkflow()
register the step in the parent workflow
|
void |
setUserTaskChoice(UserTaskChoice taskchoice,
WorkflowStep nextstep)
sets a possible choice and associated next steps
|
void |
writedeclaration(SourceGenerator sg,
Module module,
java.lang.String parentclass,
java.lang.String lifecycleclass) |
void |
writeimport(SourceGenerator sg,
Module module)
writes the import for this workflow step
|
void |
writeNextSteps(SourceGenerator sg,
Module module)
a recursive method writing the source code for the next steps of the workflow
|
getParent, setSequence
public UserTask(ComplexWorkflow parent, java.lang.String code, java.lang.String title, java.lang.String taskmessage, int delay, boolean delayindays, boolean notifyrecipientbymail, TaskUserSelector selector)
parent
- the parent workflowcode
- code of the user task (should be unique)title
- title of the tasktaskmessage
- the task message that will be displayed. It can
potentially be rich-text using Open Lowcode rich-text
languagedelay
- number of units (see below delayindays) for
delay before task is considered latedelayindays
- if true, delay is expressed in days, else in
minutesnotifyrecipientbymail
- if true, recipients will receive an e-mail (not:
probably not used)selector
- a selector of the users the task should be sent
topublic java.lang.String gettaskid()
gettaskid
in class WorkflowStep
public TaskUserSelector getUserSelector()
public int getDelay()
public boolean isDelayInDays()
public java.lang.String getTaskmessage()
public java.lang.String getTitle()
public int getTaskChoiceNumber()
public UserTaskChoice getChoiceAtIndex(int index)
index
- a number between 0 (included) and getTaskChoiceNumber (excluded)public void setUserTaskChoice(UserTaskChoice taskchoice, WorkflowStep nextstep)
taskchoice
- task choice presented to the usernextstep
- next step for this choicepublic java.lang.String getCode()
public void registerToParentWorkflow()
WorkflowStep
registerToParentWorkflow
in class WorkflowStep
public void writeimport(SourceGenerator sg, Module module) throws java.io.IOException
WorkflowStep
writeimport
in class WorkflowStep
sg
- sourcce generatormodule
- parent modulejava.io.IOException
- if anything bad happens in the workflowpublic void writedeclaration(SourceGenerator sg, Module module, java.lang.String parentclass, java.lang.String lifecycleclass) throws java.io.IOException
writedeclaration
in class WorkflowStep
java.io.IOException
public void writeNextSteps(SourceGenerator sg, Module module) throws java.io.IOException
WorkflowStep
writeNextSteps
in class WorkflowStep
sg
- source generatormodule
- parent modulejava.io.IOException
- if anything bad happens in the workflow