public abstract class YTask extends YExternalNetElement
Modifier and Type | Field and Description |
---|---|
static int |
_AND |
protected java.util.Map<java.lang.String,java.lang.String> |
_dataMappingsForTaskEnablement |
protected java.util.Map<java.lang.String,java.lang.String> |
_dataMappingsForTaskStarting |
protected YDecomposition |
_decompositionPrototype |
protected YIdentifier |
_i |
protected YInternalCondition |
_mi_active |
protected YInternalCondition |
_mi_complete |
protected YInternalCondition |
_mi_entered |
protected YInternalCondition |
_mi_executing |
protected YMultiInstanceAttributes |
_multiInstAttr |
static int |
_OR |
static int |
_XOR |
_documentation, _name, _net
Constructor and Description |
---|
YTask(java.lang.String id,
int joinType,
int splitType,
YNet container)
Constructor
|
Modifier and Type | Method and Description |
---|---|
void |
addRemovesTokensFrom(java.util.List<YExternalNetElement> removeSet) |
void |
cancel(YPersistenceManager pmgr) |
protected void |
checkExternalMapping(java.lang.String query,
YVerificationHandler handler) |
protected void |
checkXQuery(java.lang.String xQuery,
java.lang.String param,
YVerificationHandler handler) |
java.lang.Object |
clone() |
protected YIdentifier |
createFiredIdentifier(YPersistenceManager pmgr) |
protected Element |
evaluateTreeQuery(java.lang.String query,
Document document) |
YLogDataItemList |
get_inputLogDataItems() |
YLogDataItemList |
get_outputLogDataItems() |
java.util.List<YInternalCondition> |
getAllInternalConditions() |
java.lang.String |
getConfiguration() |
Element |
getConfigurationElement() |
java.net.URL |
getCustomFormURL() |
Element |
getData(YIdentifier childInstanceID) |
java.lang.String |
getDataBindingForEnablementParam(java.lang.String paramName)
Returns the query to a decomposition enablement parameter.
|
java.lang.String |
getDataBindingForInputParam(java.lang.String paramName)
Returns the query to a decomposition input parameter.
|
java.lang.String |
getDataBindingForOutputParam(java.lang.String paramName)
Returns the query to a decomposition output parameter.
|
java.util.Map<java.lang.String,java.lang.String> |
getDataMappingsForTaskCompletion() |
java.util.Map<java.lang.String,java.lang.String> |
getDataMappingsForTaskStarting() |
YDecomposition |
getDecompositionPrototype() |
java.lang.String |
getDefaultConfiguration() |
Element |
getDefaultConfigurationElement() |
java.lang.String |
getInformation() |
int |
getJoinType() |
YInternalCondition |
getMIActive() |
YInternalCondition |
getMIComplete() |
YInternalCondition |
getMIEntered() |
YInternalCondition |
getMIExecuting() |
java.lang.String |
getMIOutputAssignmentVar(java.lang.String query) |
YMultiInstanceAttributes |
getMultiInstanceAttributes() |
protected YNetRunnerRepository |
getNetRunnerRepository() |
java.util.Collection<java.lang.String> |
getParamNamesForTaskCompletion() |
protected java.util.Set<java.lang.String> |
getParamNamesForTaskEnablement() |
protected java.util.Set<java.lang.String> |
getParamNamesForTaskStarting() |
java.lang.String |
getPredicate(YExternalNetElement netElement) |
java.lang.String |
getPreSplittingMIQuery() |
java.util.Set<YExternalNetElement> |
getRemoveSet() |
E2WFOJNet |
getResetNet() |
Element |
getResourcingSpecs() |
java.lang.String |
getResourcingXML() |
java.lang.String |
getSpecVersion()
Gets the version of the specification.
|
int |
getSplitType() |
Element |
getStartingDataSnapshot() |
YTimerParameters |
getTimerParameters() |
YTimerVariable |
getTimerVariable() |
protected YWorkItemRepository |
getWorkItemRepository() |
boolean |
isMultiInstance() |
protected boolean |
isPopulatedEmptyTypeFlag(java.lang.String expression) |
protected Element |
performDataExtraction(java.lang.String expression,
YParameter inputParam) |
protected Element |
performExternalDataExtraction(java.lang.String expression,
YParameter inputParam) |
protected void |
performSchemaValidationOverExtractionResult(java.lang.String expression,
YParameter param,
Element result) |
void |
prepareDataDocsForTaskOutput() |
void |
prepareDataForInstanceStarting(YIdentifier childInstanceID) |
protected Element |
produceDataRootElement() |
void |
removeFromRemoveSet(YExternalNetElement e) |
void |
rollbackFired(YIdentifier childID,
YPersistenceManager pmgr) |
void |
set_inputLogDataItems(YLogDataItemList _inputLogDataItems) |
void |
set_outputLogDataItems(YLogDataItemList _outputLogDataItems) |
void |
setConfiguration(java.lang.String config) |
void |
setConfigurationElement(Element configElement) |
void |
setCustomFormURI(java.net.URL formURL) |
void |
setDataBindingForEnablementParam(java.lang.String query,
java.lang.String paramName)
Connects the query to a decomposition enablement parameter.
|
void |
setDataBindingForInputParam(java.lang.String query,
java.lang.String paramName)
Connects the query to a decomposition parameter.
|
void |
setDataBindingForOutputExpression(java.lang.String query,
java.lang.String netVarName)
Binds an output expression of a decomposition to a net variable.
|
void |
setDataMappingsForTaskCompletion(java.util.Map<java.lang.String,java.lang.String> map)
The input must be map of [key="expression", value="variableName"]
|
void |
setDataMappingsForTaskStarting(java.util.Map<java.lang.String,java.lang.String> map)
The input must be map of [key="variableName", value="expression"]
|
void |
setDecompositionPrototype(YDecomposition decomposition) |
void |
setDefaultConfiguration(java.lang.String defaultConfig) |
void |
setDefaultConfigurationElement(Element defaultConfigElement) |
void |
setI(YIdentifier i) |
void |
setJoinType(int joinType) |
void |
setMultiInstanceInputDataMappings(java.lang.String remoteVariableName,
java.lang.String inputProcessingExpression) |
void |
setMultiInstanceOutputDataMappings(java.lang.String remoteOutputQuery,
java.lang.String aggregationQuery) |
void |
setResetNet(E2WFOJNet net) |
void |
setResourcingSpecs(Element resSpec) |
void |
setResourcingXML(java.lang.String xml) |
void |
setSplitType(int splitType) |
void |
setTimerParameters(YTimerParameters timerParameters)
TIMER SETTINGS **
|
void |
setUpMultipleInstanceAttributes(java.lang.String minInstanceQuery,
java.lang.String maxInstanceQuery,
java.lang.String thresholdQuery,
java.lang.String creationMode) |
protected boolean |
skipOutboundSchemaChecks()
Indicates if schema validation is to be performed when starting the task.
|
protected abstract void |
startOne(YPersistenceManager pmgr,
YIdentifier id) |
YIdentifier |
t_add(YPersistenceManager pmgr,
YIdentifier siblingWithPermission,
Element newInstanceData) |
boolean |
t_addEnabled(YIdentifier identifier) |
boolean |
t_complete(YPersistenceManager pmgr,
YIdentifier childID,
Document decompositionOutputData) |
boolean |
t_enabled(YIdentifier id) |
java.util.List<YIdentifier> |
t_fire(YPersistenceManager pmgr) |
boolean |
t_isBusy() |
boolean |
t_isExitEnabled() |
void |
t_start(YPersistenceManager pmgr,
YIdentifier child) |
java.lang.String |
toXML() |
void |
verify(YVerificationHandler handler)
Internally verify the object against YAWL language semantics and
report any errors and/or warnings.
|
addPostset, addPreset, addToCancelledBySet, addToYawlMappings, addToYawlMappings, getCancelledBySet, getDocumentation, getDocumentationPreParsed, getName, getNet, getPostsetElement, getPostsetElements, getPostsetFlow, getPostsetFlows, getPresetElement, getPresetElements, getPresetFlow, getPresetFlows, getProperID, getYawlMappings, removeFromCancelledBySet, removePostsetFlow, removePresetFlow, setDocumentation, setID, setName, verifyPostsetFlows, verifyPresetFlows
compareTo, getID, toString
public static final int _AND
public static final int _OR
public static final int _XOR
protected YIdentifier _i
protected YInternalCondition _mi_active
protected YInternalCondition _mi_entered
protected YInternalCondition _mi_complete
protected YInternalCondition _mi_executing
protected YMultiInstanceAttributes _multiInstAttr
protected final java.util.Map<java.lang.String,java.lang.String> _dataMappingsForTaskStarting
protected final java.util.Map<java.lang.String,java.lang.String> _dataMappingsForTaskEnablement
protected YDecomposition _decompositionPrototype
public YTask(java.lang.String id, int joinType, int splitType, YNet container)
id
- splitType
- joinType
- container
- public void setI(YIdentifier i)
public E2WFOJNet getResetNet()
public void setResetNet(E2WFOJNet net)
public int getSplitType()
public int getJoinType()
public void setSplitType(int splitType)
public void setJoinType(int joinType)
public boolean isMultiInstance()
public java.lang.String getPredicate(YExternalNetElement netElement)
public YMultiInstanceAttributes getMultiInstanceAttributes()
public void setUpMultipleInstanceAttributes(java.lang.String minInstanceQuery, java.lang.String maxInstanceQuery, java.lang.String thresholdQuery, java.lang.String creationMode)
public void setMultiInstanceInputDataMappings(java.lang.String remoteVariableName, java.lang.String inputProcessingExpression)
public void setMultiInstanceOutputDataMappings(java.lang.String remoteOutputQuery, java.lang.String aggregationQuery)
public java.util.Collection<java.lang.String> getParamNamesForTaskCompletion()
protected void checkXQuery(java.lang.String xQuery, java.lang.String param, YVerificationHandler handler)
protected void checkExternalMapping(java.lang.String query, YVerificationHandler handler)
protected java.util.Set<java.lang.String> getParamNamesForTaskEnablement()
protected java.util.Set<java.lang.String> getParamNamesForTaskStarting()
public java.util.Map<java.lang.String,java.lang.String> getDataMappingsForTaskStarting()
public java.util.Map<java.lang.String,java.lang.String> getDataMappingsForTaskCompletion()
public java.util.Set<YExternalNetElement> getRemoveSet()
public void addRemovesTokensFrom(java.util.List<YExternalNetElement> removeSet)
public void removeFromRemoveSet(YExternalNetElement e)
public java.util.List<YIdentifier> t_fire(YPersistenceManager pmgr) throws YStateException, YDataStateException, YQueryException, YPersistenceException
public void prepareDataDocsForTaskOutput()
public YIdentifier t_add(YPersistenceManager pmgr, YIdentifier siblingWithPermission, Element newInstanceData) throws YDataStateException, YStateException, YQueryException, YPersistenceException
public boolean t_addEnabled(YIdentifier identifier)
public java.lang.String getPreSplittingMIQuery()
public boolean t_isExitEnabled()
public boolean t_complete(YPersistenceManager pmgr, YIdentifier childID, Document decompositionOutputData) throws YDataStateException, YStateException, YQueryException, YPersistenceException
public java.lang.String getMIOutputAssignmentVar(java.lang.String query)
public void t_start(YPersistenceManager pmgr, YIdentifier child) throws YDataStateException, YPersistenceException, YQueryException, YStateException
protected YNetRunnerRepository getNetRunnerRepository()
protected YWorkItemRepository getWorkItemRepository()
public boolean t_enabled(YIdentifier id)
public java.lang.Object clone() throws java.lang.CloneNotSupportedException
clone
in class YExternalNetElement
java.lang.CloneNotSupportedException
protected abstract void startOne(YPersistenceManager pmgr, YIdentifier id) throws YDataStateException, YPersistenceException, YQueryException, YStateException
protected YIdentifier createFiredIdentifier(YPersistenceManager pmgr) throws YPersistenceException
YPersistenceException
public void prepareDataForInstanceStarting(YIdentifier childInstanceID) throws YDataStateException, YStateException, YQueryException
public Element getStartingDataSnapshot() throws YDataStateException, YStateException, YQueryException
protected Element performDataExtraction(java.lang.String expression, YParameter inputParam) throws YDataStateException, YQueryException
YDataStateException
YQueryException
protected boolean isPopulatedEmptyTypeFlag(java.lang.String expression)
protected Element performExternalDataExtraction(java.lang.String expression, YParameter inputParam) throws YStateException, YDataStateException
YStateException
YDataStateException
protected void performSchemaValidationOverExtractionResult(java.lang.String expression, YParameter param, Element result) throws YDataStateException
YDataStateException
protected Element produceDataRootElement()
protected Element evaluateTreeQuery(java.lang.String query, Document document) throws YQueryException
YQueryException
public Element getData(YIdentifier childInstanceID)
public boolean t_isBusy()
public void cancel(YPersistenceManager pmgr) throws YPersistenceException
YPersistenceException
public void rollbackFired(YIdentifier childID, YPersistenceManager pmgr) throws YPersistenceException
YPersistenceException
public YInternalCondition getMIActive()
public YInternalCondition getMIEntered()
public YInternalCondition getMIComplete()
public YInternalCondition getMIExecuting()
public java.util.List<YInternalCondition> getAllInternalConditions()
public void setDataMappingsForTaskStarting(java.util.Map<java.lang.String,java.lang.String> map)
map
- public void setDataMappingsForTaskCompletion(java.util.Map<java.lang.String,java.lang.String> map)
map
- public java.lang.String toXML()
toXML
in class YExternalNetElement
public YDecomposition getDecompositionPrototype()
public void setDecompositionPrototype(YDecomposition decomposition)
public void setDataBindingForEnablementParam(java.lang.String query, java.lang.String paramName)
query
- a query applied to the net enablement variable in the net
containing this task.paramName
- the enablement decomposition parameter to which to apply the result.public java.lang.String getDataBindingForEnablementParam(java.lang.String paramName)
paramName
- the decomposition enablement variable.public void setDataBindingForInputParam(java.lang.String query, java.lang.String paramName)
query
- a query applied to the net variables in the net containing
this task.paramName
- the decomposition parameter to which to apply the result.public java.lang.String getDataBindingForInputParam(java.lang.String paramName)
paramName
- the decomposition input parameter.public void setDataBindingForOutputExpression(java.lang.String query, java.lang.String netVarName)
query
- the ouptut expression belonging to the tasks decompositionnetVarName
- the net scope variable to which to apply the result.public java.lang.String getDataBindingForOutputParam(java.lang.String paramName)
paramName
- the decomposition output parameter.public java.lang.String getInformation()
public java.lang.String getSpecVersion()
public YLogDataItemList get_inputLogDataItems()
public void set_inputLogDataItems(YLogDataItemList _inputLogDataItems)
public YLogDataItemList get_outputLogDataItems()
public void set_outputLogDataItems(YLogDataItemList _outputLogDataItems)
public void verify(YVerificationHandler handler)
YVerifiable
verify
in interface YVerifiable
verify
in class YExternalNetElement
YVerificationMessage
protected boolean skipOutboundSchemaChecks()
public java.lang.String getResourcingXML()
public void setResourcingXML(java.lang.String xml)
public Element getResourcingSpecs()
public void setResourcingSpecs(Element resSpec)
public void setCustomFormURI(java.net.URL formURL)
public java.net.URL getCustomFormURL()
public void setTimerParameters(YTimerParameters timerParameters)
public YTimerVariable getTimerVariable()
public YTimerParameters getTimerParameters()
public java.lang.String getConfiguration()
public void setConfiguration(java.lang.String config)
public java.lang.String getDefaultConfiguration()
public void setDefaultConfiguration(java.lang.String defaultConfig)
public Element getConfigurationElement()
public void setConfigurationElement(Element configElement)
public Element getDefaultConfigurationElement()
public void setDefaultConfigurationElement(Element defaultConfigElement)
Copyright © 2004-2014 The YAWL Foundation.