public class SimpleTaskWorkflow 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 |
---|
SimpleTaskWorkflow(ObjectToAuthorityMapper authorityselection,
java.lang.String emailtype)
Creates a simple task workflow on the given object
|
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() |
java.lang.String |
getJavaType() |
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.
|
DataObjectDefinition |
getWorkflowReportObject() |
void |
setFinalSettings()
an abstract method to be implemented by properties for finalizations to be
performed after all data objects have been created.
|
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 SimpleTaskWorkflow(ObjectToAuthorityMapper authorityselection, java.lang.String emailtype)
authorityselection
- the rule used to send objects to users (sent to all
users in a given authority)emailtype
- type of e-mail notification, either stacked or sent
real-timepublic DataObjectDefinition getWorkflowReportObject()
public void controlAfterParentDefinition()
Property
controlAfterParentDefinition
in class Property<ObjectWithWorkflow>
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 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>