public class ComplexWorkflow extends ObjectWithWorkflow
ObjectWithWorkflow.ObjectWorkflowTable
Property.PropertyElementDisplayDefinition
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
EMAIL_DAILY |
static java.lang.String |
EMAIL_DELAY15MIN |
static java.lang.String |
EMAIL_DELAY2H |
static java.lang.String |
EMAIL_NONE |
static java.lang.String |
EMAIL_NOW |
static java.lang.String |
EMAIL_WEEKLY |
FIELDDIPLSAY_TITLE_MOD, FIELDDISPLAY_BOTTOMNOTES, FIELDDISPLAY_NONE, FIELDDISPLAY_NORMAL, FIELDDISPLAY_NORMAL_MOD, FIELDDISPLAY_TITLE, parent
Constructor and Description |
---|
ComplexWorkflow(WorkflowTriggerCondition automaticworkflowtrigger,
java.lang.String emailtype)
creates a complex workflow with the given trigger and e-mail type
|
Modifier and Type | Method and Description |
---|---|
void |
controlAfterParentDefinition()
to be implemented if controls have to be performed after parent is added.
|
void |
generatePropertyHelperToFile(SourceGenerator sg,
Module module)
Generates in the data folder the property helper.
|
java.util.ArrayList<DataObjectDefinition> |
getExternalObjectDependence() |
WorkflowStep |
getFirstStep() |
java.lang.String |
getJavaType() |
Lifecycle |
getParentLifecycle() |
java.lang.String[] |
getPropertyDeepCopyStatement()
Returns the required deepcopy statement for the property, sends back null if
nothing is required.
|
java.lang.String[] |
getPropertyExtractMethod()
This method should return non null value only if
setCreationDataInputForUpdate() is set
|
java.lang.String |
getPropertyHelperName()
A property can have a specific property helper.
|
java.lang.String[] |
getPropertyInitMethod()
this method uses the context data for creation and the data-input for
standard creation.
|
ComplexWorkflowClose |
getWorkflowClose() |
ComplexWorkflowGround |
getWorkflowGround() |
void |
registerNonTaskWorkflowStep(WorkflowStep step)
registers a step that is not a user task
|
void |
registerUserTask(UserTask task)
registers a user task in the catalog of tasks of the workflows.
|
void |
setFinalSettings()
an abstract method to be implemented by properties for finalizations to be
performed after all data objects have been created.
|
void |
setFirstStep(WorkflowStep firststep)
defines the first step of the workflow
|
void |
writeDependentClass(SourceGenerator sg,
Module module)
only send here classes that are NOT data objects.
|
getObjectWorkflowTable, setWorkflowTableWidgetPriority
addBusinessRule, addChoiceCategoryHelper, addContextForDataCreation, addDataAccessMethod, addDataInput, addDependentProperty, addDisplayProfileForProperty, addElement, addElement, addElementasSearchElement, addExternalObjectProperty, addFieldOverrides, addMethodAdditionalProcessing, addObjectToAuthorityMapper, addPropertyGenerics, addStringHelper, getBusinessRule, getBusinessRuleByName, getBusinessRuleNumber, getChoiceCategoryByKey, getChoiceCategoryKeyNumber, getChoiceCategoryNumber, getContextDataForCreation, getContextDataForCreationSize, getDataAccessMethod, getDataAccessMethod, getDataAccessMethodnumber, getDataInputForCreation, getDataInputSize, getDataObjectConstructorAttributes, getDataObjectFieldName, getDependentProperties, getDisplayDefinitionForElement, getDisplayProfileForProperty, getDisplayProfileForPropertyNumber, getExternalObject, getExternalObjectProperty, getExternalObjectPropertySize, getFieldOverridesat, getFieldOverridesNumber, getInstancename, getJavaClassType, getMethodAdditionalProcessing, getMethodAdditionalProcessingnumber, getParent, getPropertyclassname, getPropertyGenerics, getPropertyGenericsSize, getPropertyGenericsString, hasDynamicDefinitionHelper, hasInterface, hasStaticQuery, hideDataInputForCreation, isDatainputatbottom, isDataInputHiddenForCreation, isDataInputUsedForUpdate, isLegacy, isPropertyHelperTransient, setAsLegacy, setDatainputatbottom, setDataInputForUpdate, setDynamicDefinitionHelper, setExtraAttributes, writeAdditionalDefinition
AddElementWithSearch, addIndex, getDisplayname, getElements, getIndex, getSearchWidgetList, getTooltip
changeName, cleanName, equals, getName
public static final java.lang.String EMAIL_NONE
public static final java.lang.String EMAIL_NOW
public static final java.lang.String EMAIL_DELAY15MIN
public static final java.lang.String EMAIL_DELAY2H
public static final java.lang.String EMAIL_DAILY
public static final java.lang.String EMAIL_WEEKLY
public ComplexWorkflow(WorkflowTriggerCondition automaticworkflowtrigger, java.lang.String emailtype)
automaticworkflowtrigger
- type of trigger (at the start of object,
reaching of a lifecycle...)emailtype
- type of e-mail (as defined in a static String
in this class)public Lifecycle getParentLifecycle()
public void registerUserTask(UserTask task)
task
- a task to register in the workflowpublic void registerNonTaskWorkflowStep(WorkflowStep step)
step
- step to registerpublic void setFirstStep(WorkflowStep firststep)
firststep
- first step of the workflow (should already be registered
with the workflow)public WorkflowStep getFirstStep()
public ComplexWorkflowClose getWorkflowClose()
public ComplexWorkflowGround getWorkflowGround()
public java.lang.String[] getPropertyInitMethod()
Property
getPropertyInitMethod
in class Property<ObjectWithWorkflow>
public java.lang.String[] getPropertyExtractMethod()
Property
getPropertyExtractMethod
in class Property<ObjectWithWorkflow>
public java.util.ArrayList<DataObjectDefinition> getExternalObjectDependence()
getExternalObjectDependence
in class Property<ObjectWithWorkflow>
public void setFinalSettings()
Property
setFinalSettings
in class Property<ObjectWithWorkflow>
public java.lang.String getJavaType()
getJavaType
in class ObjectElement
public void writeDependentClass(SourceGenerator sg, Module module) throws java.io.IOException
ObjectElement
writeDependentClass
in class ObjectElement
java.io.IOException
public void controlAfterParentDefinition()
Property
controlAfterParentDefinition
in class Property<ObjectWithWorkflow>
public java.lang.String getPropertyHelperName()
Property
getPropertyHelperName
in class Property<ObjectWithWorkflow>
public void generatePropertyHelperToFile(SourceGenerator sg, Module module) throws java.io.IOException
Property
generatePropertyHelperToFile
in class Property<ObjectWithWorkflow>
sg
- source generatormodule
- parent modulejava.io.IOException
- if any error is encountered writing the source filepublic java.lang.String[] getPropertyDeepCopyStatement()
Property
getPropertyDeepCopyStatement
in class Property<ObjectWithWorkflow>