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 StringRetrieves execution variableBpmnExecutionVariables.ALTERNATIVE_BUSINESS_KEYdefault BooleangetBoolean(String variableName) RetrievesBooleanexecution variable with the given variableNamedefault BooleangetBooleanLocal(String variableName) RetrievesBooleanlocal variable with the given variableNamedefault byte[]getByteArray(String variableName) Retrievesbyte[]execution variable with the given variableNamedefault byte[]getByteArrayLocal(String variableName) Retrievesbyte[]local variable with the given variableNameList<org.hl7.fhir.r4.model.Task> default DateRetrievesDateexecution variable with the given variableNamedefault DategetDateLocal(String variableName) RetrievesDatelocal variable with the given variableNamedefault DoubleRetrievesDoubleexecution variable with the given variableNamedefault DoublegetDoubleLocal(String variableName) RetrievesDoublelocal variable with the given variableName<R extends org.hl7.fhir.r4.model.Resource>
RgetFhirResource(String variableName) Retrieves FHIRResourceexecution variable with the given variableName<R extends org.hl7.fhir.r4.model.Resource>
List<R> getFhirResourceList(String variableName) Retrieves FHIRResourcelist execution variable with the given variableName<R extends org.hl7.fhir.r4.model.Resource>
List<R> getFhirResourceListLocal(String variableName) Retrieves FHIRResourcelist local variable with the given variableName<R extends org.hl7.fhir.r4.model.Resource>
RgetFhirResourceLocal(String variableName) Retrieves FHIRResourcelocal variable with the given variableNamedefault FileRetrievesFileexecution variable with the given variableNamedefault FilegetFileLocal(String variableName) RetrievesFilelocal variable with the given variableNamedefault IntegergetInteger(String variableName) RetrievesIntegerexecution variable with the given variableNamedefault IntegergetIntegerLocal(String variableName) RetrievesIntegerlocal 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 LonggetLongLocal(String variableName) RetrievesLonglocal variable with the given variableNamedefault NumberRetrievesNumberexecution variable with the given variableNamedefault NumbergetNumberLocal(String variableName) RetrievesNumberlocal variable with the given variableNamedefault ShortRetrievesShortexecution variable with the given variableNamedefault ShortgetShortLocal(String variableName) RetrievesShortlocal 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 variableNamedefault StringgetStringLocal(String variableName) RetrievesStringlocal variable with the given variableNameRetrieves execution variableBpmnExecutionVariables.TARGETRetrieves execution variableBpmnExecutionVariables.TARGETSList<org.hl7.fhir.r4.model.Task> getTasks()<T> TgetVariable(String variableName) Retrieves execution variable with the given variableName<T> TgetVariableLocal(String variableName) Retrieves local variable with the given variableNamevoidsetAlternativeBusinessKey(String alternativeBusinessKey) Sets execution variableBpmnExecutionVariables.ALTERNATIVE_BUSINESS_KEYto the given alternativeBusinessKeyvoidsetBoolean(String variableName, Boolean value) Sets execution variable with the given variableName to the givenBooleanvoidsetBooleanLocal(String variableName, Boolean value) Sets local variable with the given variableName to the givenBooleanvoidsetByteArray(String variableName, byte[] value) Sets execution variable with the given variableName to the givenbyte[]voidsetByteArrayLocal(String variableName, byte[] value) Sets local variable with the given variableName to the givenbyte[]voidSets execution variable with the given variableName to the givenDatevoidsetDateLocal(String variableName, Date value) Sets local variable with the given variableName to the givenDatevoidSets execution variable with the given variableName to the givenDoublevoidsetDoubleLocal(String variableName, Double value) Sets local variable with the given variableName to the givenDoublevoidsetFhirResource(String variableName, org.hl7.fhir.r4.model.Resource resource) Sets execution variable with the given variableName to the given FHIRResourcevoidsetFhirResourceList(String variableName, List<? extends org.hl7.fhir.r4.model.Resource> resources) Sets execution variable with the given variableName to the given FHIRResourcelistvoidsetFhirResourceListLocal(String variableName, List<? extends org.hl7.fhir.r4.model.Resource> resources) Sets local variable with the given variableName to the given FHIRResourcelistvoidsetFhirResourceLocal(String variableName, org.hl7.fhir.r4.model.Resource resource) Sets local variable with the given variableName to the given FHIRResourcevoidSets execution variable with the given variableName to the givenFilevoidsetFileLocal(String variableName, File value) Sets local variable with the given variableName to the givenFilevoidsetInteger(String variableName, Integer value) Sets execution variable with the given variableName to the givenIntegervoidsetIntegerLocal(String variableName, Integer value) Sets local variable with the given variableName to the givenIntegervoidsetJsonVariable(String variableName, Object value) UsesObjectMapperto serialize the given value into json.voidsetJsonVariableLocal(String variableName, Object value) UsesObjectMapperto serialize the given value into json.voidSets execution variable with the given variableName to the givenLongvoidsetLongLocal(String variableName, Long value) Sets local variable with the given variableName to the givenLongvoidSets execution variable with the given variableName to the givenNumbervoidsetNumberLocal(String variableName, Number value) Sets local variable with the given variableName to the givenNumbervoidSets execution variable with the given variableName to the givenShortvoidsetShortLocal(String variableName, Short value) Sets local variable with the given variableName to the givenShortvoidSets execution variable with the given variableName to the givenStringvoidsetStringLocal(String variableName, String value) Sets local variable with the given variableName to the givenStringvoidSets execution variableBpmnExecutionVariables.TARGETvoidsetTargets(Targets targets) Sets execution variableBpmnExecutionVariables.TARGETS.voidupdateTask(org.hl7.fhir.r4.model.Task task) Does nothing if the given task isnull.
-
Method Details
-
getBusinessKey
String getBusinessKey()- Returns:
- not
null, business key of the current process instance
-
getCurrentActivityId
String getCurrentActivityId()- Returns:
- not
null, id of the current activity
-
getProcessDefinitionId
String getProcessDefinitionId()- Returns:
- not
null, id of the current process definition
-
getActivityInstanceId
String getActivityInstanceId()- Returns:
- not
null, id of the current activity instance
-
setAlternativeBusinessKey
Sets execution variableBpmnExecutionVariables.ALTERNATIVE_BUSINESS_KEYto the given alternativeBusinessKey- Parameters:
alternativeBusinessKey- may benull- See Also:
-
getAlternativeBusinessKey
Retrieves execution variableBpmnExecutionVariables.ALTERNATIVE_BUSINESS_KEY- Returns:
- may be
null - See Also:
-
createTarget
Target createTarget(String organizationIdentifierValue, String endpointIdentifierValue, String endpointAddress, String correlationKey) Creates a newTargetobject.A not
nullcorrelationKey should be used if return messages i.e. 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 i.e. 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 i.e. 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:
-
setFhirResourceList
void setFhirResourceList(String variableName, List<? extends org.hl7.fhir.r4.model.Resource> resources) Sets execution variable with the given variableName to the given FHIRResourcelist- Parameters:
variableName- notnullresources-
-
getFhirResourceList
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
-
setFhirResource
Sets execution variable with the given variableName to the given FHIRResource- Parameters:
variableName- notnullresource- may benull
-
getFhirResource
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
-
setJsonVariable
UsesObjectMapperto serialize the given value into json. Value class needs annotations likeJsonCreator,JsonPropertyandJsonGetter- Parameters:
variableName- notnullvalue- may be null- See Also:
-
getVariable
Retrieves execution variable with the given variableName- Type Parameters:
T- target variable type- Parameters:
variableName- notnull- Returns:
- value from execution variables for the given variableName, may be
null - Throws:
ClassCastException- if the returned variable can not be cast to <T>- 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 anInteger- 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:
-
setIntegerLocal
Sets local variable with the given variableName to the givenInteger- Parameters:
variableName- notnullvalue- may benull- See Also:
-
getIntegerLocal
RetrievesIntegerlocal 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 anInteger- See Also:
-
setStringLocal
Sets local variable with the given variableName to the givenString- Parameters:
variableName- notnullvalue- may benull- See Also:
-
getStringLocal
RetrievesStringlocal 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:
-
setBooleanLocal
Sets local variable with the given variableName to the givenBoolean- Parameters:
variableName- notnullvalue- may benull- See Also:
-
getBooleanLocal
RetrievesBooleanlocal 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:
-
setByteArrayLocal
Sets local variable with the given variableName to the givenbyte[]- Parameters:
variableName- notnullvalue- may benull- See Also:
-
getByteArrayLocal
Retrievesbyte[]local 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:
-
setDateLocal
Sets local variable with the given variableName to the givenDate- Parameters:
variableName- notnullvalue- may benull- See Also:
-
getDateLocal
RetrievesDatelocal 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:
-
setLongLocal
Sets local variable with the given variableName to the givenLong- Parameters:
variableName- notnullvalue- may benull- See Also:
-
getLongLocal
RetrievesLonglocal 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:
-
setShortLocal
Sets local variable with the given variableName to the givenShort- Parameters:
variableName- notnullvalue- may benull- See Also:
-
getShortLocal
RetrievesShortlocal 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:
-
setDoubleLocal
Sets local variable with the given variableName to the givenDouble- Parameters:
variableName- notnullvalue- may benull- See Also:
-
getDoubleLocal
RetrievesDoublelocal 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:
-
setNumberLocal
Sets local variable with the given variableName to the givenNumber- Parameters:
variableName- notnullvalue- may benull- See Also:
-
getNumberLocal
RetrievesNumberlocal 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:
-
setFileLocal
Sets local variable with the given variableName to the givenFile- Parameters:
variableName- notnullvalue- may benull- See Also:
-
getFileLocal
RetrievesFilelocal 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:
-
setJsonVariableLocal
UsesObjectMapperto serialize the given value into json. Value class needs annotations likeJsonCreator,JsonPropertyandJsonGetter- Parameters:
variableName- notnullvalue- may be null- See Also:
-
getVariableLocal
Retrieves local variable with the given variableName- Type Parameters:
T- target variable type- Parameters:
variableName- notnull- Returns:
- value from local variables for the given variableName, may be
null - Throws:
ClassCastException- if the returned variable can not be cast to <T>- See Also:
-
setFhirResourceListLocal
void setFhirResourceListLocal(String variableName, List<? extends org.hl7.fhir.r4.model.Resource> resources) Sets local variable with the given variableName to the given FHIRResourcelist- Parameters:
variableName- notnullresources-
-
getFhirResourceListLocal
Retrieves FHIRResourcelist local 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
-
setFhirResourceLocal
Sets local variable with the given variableName to the given FHIRResource- Parameters:
variableName- notnullresource- may benull
-
getFhirResourceLocal
Retrieves FHIRResourcelocal 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
-