Interface Variables
-
Method Summary
Modifier and TypeMethodDescriptiondefault TargetcreateTarget(String organizationIdentifierValue, String endpointIdentifierValue, String endpointAddress) Creates a newTargetobject.createTarget(String organizationIdentifierValue, String endpointIdentifierValue, String endpointAddress, String correlationKey) Creates a newTargetobject.default TargetscreateTargets(Target... targets) Creates a new target list.createTargets(List<? extends Target> targets) Creates a new target list.default BooleangetBoolean(String variableName) RetrievesBooleanexecution variable with the given variableNamedefault byte[]getByteArray(String variableName) Retrievesbyte[]execution variable with the given variableNameList<org.hl7.fhir.r4.model.Task> default DateRetrievesDateexecution variable with the given variableNamedefault DoubleRetrievesDoubleexecution variable with the given variableNamedefault FileRetrievesFileexecution variable with the given variableNamedefault IntegergetInteger(String variableName) RetrievesIntegerexecution variable with the given variableNameorg.hl7.fhir.r4.model.QuestionnaireResponseorg.hl7.fhir.r4.model.TaskReturns the latestTaskreceived by this process or subprocess via a intermediate message catch event or message receive task.default LongRetrievesLongexecution variable with the given variableNamedefault NumberRetrievesNumberexecution variable with the given variableName<R extends org.hl7.fhir.r4.model.Resource>
RgetResource(String variableName) Retrieves FHIRResourceexecution variable with the given variableName<R extends org.hl7.fhir.r4.model.Resource>
List<R> getResourceList(String variableName) Retrieves FHIRResourcelist execution variable with the given variableNamedefault ShortRetrievesShortexecution variable with the given variableNameorg.hl7.fhir.r4.model.TaskReturns theTaskassociated with the message start event of the process.default StringRetrievesStringexecution variable with the given variableNameRetrieves execution variableBpmnExecutionVariables.TARGETRetrieves execution variableBpmnExecutionVariables.TARGETSList<org.hl7.fhir.r4.model.Task> getTasks()getVariable(String variableName) Retrieves execution variable with the given variableNamevoidsetAlternativeBusinessKey(String alternativeBusinessKey) Sets execution variableBpmnExecutionVariables.ALTERNATIVE_BUSINESS_KEYdefault voidsetBoolean(String variableName, Boolean value) Sets execution variable with the given variableName to the givenBooleandefault voidsetByteArray(String variableName, byte[] value) Sets execution variable with the given variableName to the givenbyte[]default voidSets execution variable with the given variableName to the givenDatedefault voidSets execution variable with the given variableName to the givenDoubledefault voidSets execution variable with the given variableName to the givenFiledefault voidsetInteger(String variableName, Integer value) Sets execution variable with the given variableName to the givenIntegerdefault voidSets execution variable with the given variableName to the givenLongdefault voidSets execution variable with the given variableName to the givenNumbervoidsetResource(String variableName, org.hl7.fhir.r4.model.Resource resource) Sets execution variable with the given variableName to the given FHIRResourcevoidsetResourceList(String variableName, List<? extends org.hl7.fhir.r4.model.Resource> resources) Sets execution variable with the given variableName to the given FHIRResourcelistdefault voidSets execution variable with the given variableName to the givenShortdefault voidSets execution variable with the given variableName to the givenStringvoidSets execution variableBpmnExecutionVariables.TARGETvoidsetTargets(Targets targets) Sets execution variableBpmnExecutionVariables.TARGETS.voidsetVariable(String variableName, org.camunda.bpm.engine.variable.value.TypedValue value) Sets execution variable with the given variableName to the givenTypedValuevoidupdateTask(org.hl7.fhir.r4.model.Task task) Does nothing if the given task isnull.
-
Method Details
-
setAlternativeBusinessKey
Sets execution variableBpmnExecutionVariables.ALTERNATIVE_BUSINESS_KEY- Parameters:
alternativeBusinessKey- may benull
-
createTarget
Target createTarget(String organizationIdentifierValue, String endpointIdentifierValue, String endpointAddress, String correlationKey) Creates a newTargetobject.A not
nullcorrelationKey should be used if return messages aka. Task resources from multiple organizations with the same message-name are expected in a following multi instance message receive task or intermediate message catch event in a multi instance subprocess.
Note: The correlationKey needs to be set as aBpmnExecutionVariables.CORRELATION_KEYvariable in the message receive task or intermediate message catch event of a subprocess before incoming messages aka. Task resources can be correlated. Within a BPMN file this can be accomplished by setting an input variable with name:BpmnExecutionVariables.CORRELATION_KEY, type:string or expression, and value:${target.correlationKey}.A not
nullcorrelationKey should also be used when sending a message aka. Task resource back to an organization waiting for multiple returns.- Parameters:
organizationIdentifierValue- notnullendpointIdentifierValue- notnullendpointAddress- notnullcorrelationKey- notnullif used for sending multiple messages and multiple messages with the same message-name are expected in return- Returns:
- new
Targetobject - See Also:
-
createTarget
default Target createTarget(String organizationIdentifierValue, String endpointIdentifierValue, String endpointAddress) Creates a newTargetobject. SeecreateTarget(String, String, String, String)for sending a correlation-key for 1:n or n:1 relationships.- Parameters:
organizationIdentifierValue- notnullendpointIdentifierValue- notnullendpointAddress- notnull- Returns:
- new
Targetobject - See Also:
-
setTarget
Sets execution variableBpmnExecutionVariables.TARGET- Parameters:
target- may benull- Throws:
IllegalArgumentException- if the given target object is not supported, meaning the object was not created by thisVariablesimplementation- See Also:
-
getTarget
Target getTarget()Retrieves execution variableBpmnExecutionVariables.TARGET- Returns:
- Execution variable
BpmnExecutionVariables.TARGET, may benull
-
createTargets
Creates a new target list. Use${targets.entries}as a multi instance collection andtargetas the element variable to loop over this list in a multi instance task or subprocess.- Parameters:
targets-Targetobjects to incorporate into the created list- Returns:
- a new target list
- Throws:
IllegalArgumentException- if one of the given target objects is not supported, meaning the object was not created by thisVariablesimplementation- See Also:
-
createTargets
Creates a new target list. Use${targets.entries}as a multi instance collection andtargetas the element variable to loop over this list in a multi instance task or subprocess.- Parameters:
targets-Targetobjects to incorporate into the created list, may benull- Returns:
- a new target list
- Throws:
IllegalArgumentException- if one of the given target objects is not supported, meaning the object was not created by thisVariablesimplementation- See Also:
-
setTargets
Sets execution variableBpmnExecutionVariables.TARGETS. Use${targets.entries}as a multi instance collection and- Parameters:
targets- may benull- See Also:
-
getTargets
Targets getTargets()Retrieves execution variableBpmnExecutionVariables.TARGETS- Returns:
- Execution variable
BpmnExecutionVariables.TARGETS, may benull - See Also:
-
setResourceList
Sets execution variable with the given variableName to the given FHIRResourcelist- Parameters:
variableName- notnullresources-
-
getResourceList
Retrieves FHIRResourcelist execution variable with the given variableName- Type Parameters:
R- FHIR resource type- Parameters:
variableName- notnull- Returns:
- list of FHIR resources from execution variables for the given variableName, may be
null
-
setResource
Sets execution variable with the given variableName to the given FHIRResource- Parameters:
variableName- notnullresource- may benull
-
getResource
Retrieves FHIRResourceexecution variable with the given variableName- Type Parameters:
R- FHIR resource type- Parameters:
variableName- notnull- Returns:
- value from execution variables for the given variableName, may be
null
-
getStartTask
org.hl7.fhir.r4.model.Task getStartTask()Returns theTaskassociated with the message start event of the process.- Returns:
Taskthat started the process instance, notnull- See Also:
-
getLatestTask
org.hl7.fhir.r4.model.Task getLatestTask()Returns the latestTaskreceived by this process or subprocess via a intermediate message catch event or message receive task.- Returns:
- Last received
Taskof the current process or subprocess, notnull - See Also:
-
getTasks
List<org.hl7.fhir.r4.model.Task> getTasks()- Returns:
- All
Taskresources received - See Also:
-
getCurrentTasks
List<org.hl7.fhir.r4.model.Task> getCurrentTasks()- Returns:
- All
Taskresources received by the current process or subprocess - See Also:
-
updateTask
void updateTask(org.hl7.fhir.r4.model.Task task) Does nothing if the given task isnull. Forces an update to the Task list variable used internally to track all received Task resources if the given task object is already part of this list.- Parameters:
task- may benull- See Also:
-
getLatestReceivedQuestionnaireResponse
org.hl7.fhir.r4.model.QuestionnaireResponse getLatestReceivedQuestionnaireResponse()- Returns:
- Last received
QuestionnaireResponse,nullif nothing received yet
-
setVariable
Sets execution variable with the given variableName to the givenTypedValue- Parameters:
variableName- notnullvalue- may benull- See Also:
-
getVariable
Retrieves execution variable with the given variableName- Parameters:
variableName- notnull- Returns:
- value from execution variables for the given variableName, may be
null - See Also:
-
setInteger
Sets execution variable with the given variableName to the givenInteger- Parameters:
variableName- notnullvalue- may benull- See Also:
-
getInteger
RetrievesIntegerexecution variable with the given variableName- Parameters:
variableName- notnull- Returns:
- value from execution variables for the given variableName, may be
null - Throws:
ClassCastException- if the stored value is not aInteger- See Also:
-
setString
Sets execution variable with the given variableName to the givenString- Parameters:
variableName- notnullvalue- may benull- See Also:
-
getString
RetrievesStringexecution variable with the given variableName- Parameters:
variableName- notnull- Returns:
- value from execution variables for the given variableName, may be
null - Throws:
ClassCastException- if the stored value is not aString- See Also:
-
setBoolean
Sets execution variable with the given variableName to the givenBoolean- Parameters:
variableName- notnullvalue- may benull- See Also:
-
getBoolean
RetrievesBooleanexecution variable with the given variableName- Parameters:
variableName- notnull- Returns:
- value from execution variables for the given variableName, may be
null - Throws:
ClassCastException- if the stored value is not aBoolean- See Also:
-
setByteArray
Sets execution variable with the given variableName to the givenbyte[]- Parameters:
variableName- notnullvalue- may benull- See Also:
-
getByteArray
Retrievesbyte[]execution variable with the given variableName- Parameters:
variableName- notnull- Returns:
- value from execution variables for the given variableName, may be
null - Throws:
ClassCastException- if the stored value is not abyte[]- See Also:
-
setDate
Sets execution variable with the given variableName to the givenDate- Parameters:
variableName- notnullvalue- may benull- See Also:
-
getDate
RetrievesDateexecution variable with the given variableName- Parameters:
variableName- notnull- Returns:
- value from execution variables for the given variableName, may be
null - Throws:
ClassCastException- if the stored value is not aDate- See Also:
-
setLong
Sets execution variable with the given variableName to the givenLong- Parameters:
variableName- notnullvalue- may benull- See Also:
-
getLong
RetrievesLongexecution variable with the given variableName- Parameters:
variableName- notnull- Returns:
- value from execution variables for the given variableName, may be
null - Throws:
ClassCastException- if the stored value is not aLong- See Also:
-
setShort
Sets execution variable with the given variableName to the givenShort- Parameters:
variableName- notnullvalue- may benull- See Also:
-
getShort
RetrievesShortexecution variable with the given variableName- Parameters:
variableName- notnull- Returns:
- value from execution variables for the given variableName, may be
null - Throws:
ClassCastException- if the stored value is not aShort- See Also:
-
setDouble
Sets execution variable with the given variableName to the givenDouble- Parameters:
variableName- notnullvalue- may benull- See Also:
-
getDouble
RetrievesDoubleexecution variable with the given variableName- Parameters:
variableName- notnull- Returns:
- value from execution variables for the given variableName, may be
null - Throws:
ClassCastException- if the stored value is not aDouble- See Also:
-
setNumber
Sets execution variable with the given variableName to the givenNumber- Parameters:
variableName- notnullvalue- may benull- See Also:
-
getNumber
RetrievesNumberexecution variable with the given variableName- Parameters:
variableName- notnull- Returns:
- value from execution variables for the given variableName, may be
null - Throws:
ClassCastException- if the stored value is not aNumber- See Also:
-
setFile
Sets execution variable with the given variableName to the givenFile- Parameters:
variableName- notnullvalue- may benull- See Also:
-
getFile
RetrievesFileexecution variable with the given variableName- Parameters:
variableName- notnull- Returns:
- value from execution variables for the given variableName, may be
null - Throws:
ClassCastException- if the stored value is not aFile- See Also:
-