public class SimpleExternalDBGatewayImpl extends AbstractExternalDBGateway
_dbEngine, _log
Constructor and Description |
---|
SimpleExternalDBGatewayImpl() |
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getDescription() |
Element |
populateCaseData(YSpecificationID specID,
java.lang.String caseID,
java.util.List<YParameter> inputParams,
java.util.List<YVariable> localVars,
Element caseDataTemplate)
Populates the case data template passed with values selected from a database.
|
Element |
populateTaskParameter(YTask task,
YParameter param,
Element caseData)
Populates the task parameter passed with a value selected from a database.
|
void |
updateFromCaseData(YSpecificationID specID,
java.lang.String caseID,
java.util.List<YParameter> outputParams,
Element updatingData)
Update the database with the case's values.
|
void |
updateFromTaskCompletion(java.lang.String paramName,
Element outputData,
Element caseData)
Update the database with the workitem's values.
|
configureSession, configureSession, toXML
public java.lang.String getDescription()
getDescription
in class AbstractExternalDBGateway
public Element populateTaskParameter(YTask task, YParameter param, Element caseData)
AbstractExternalDBGateway
populateTaskParameter
in class AbstractExternalDBGateway
task
- the task template for the starting workitem.param
- the name of the parameter that requires values.caseData
- the current set of case variables and values.public void updateFromTaskCompletion(java.lang.String paramName, Element outputData, Element caseData)
AbstractExternalDBGateway
updateFromTaskCompletion
in class AbstractExternalDBGateway
paramName
- the name of the task of which this workitem is an instance.outputData
- the datalist from which the corresponding database values are
to be updated.caseData
- the current set of case variables and values.public Element populateCaseData(YSpecificationID specID, java.lang.String caseID, java.util.List<YParameter> inputParams, java.util.List<YVariable> localVars, Element caseDataTemplate)
AbstractExternalDBGateway
populateCaseData
in class AbstractExternalDBGateway
specID
- the specification identifier of the case.caseID
- the case identifier.inputParams
- the input parameters that require values.localVars
- the local variables (optionally change their initial values).caseDataTemplate
- the data structure that requires values.public void updateFromCaseData(YSpecificationID specID, java.lang.String caseID, java.util.List<YParameter> outputParams, Element updatingData)
AbstractExternalDBGateway
updateFromCaseData
in class AbstractExternalDBGateway
specID
- the specification identifier of the case.caseID
- the case identifier.outputParams
- the output parameters for the case.updatingData
- the datalist from which the corresponding database values are
to be updated.Copyright © 2004-2014 The YAWL Foundation.