Interface Variables
-
Method Summary
Modifier and TypeMethodDescriptiondefault Target
createTarget
(String organizationIdentifierValue, String endpointIdentifierValue, String endpointAddress) Creates a newTarget
object.createTarget
(String organizationIdentifierValue, String endpointIdentifierValue, String endpointAddress, String correlationKey) Creates a newTarget
object.default Targets
createTargets
(Target... targets) Creates a new target list.createTargets
(List<? extends Target> targets) Creates a new target list.default Boolean
getBoolean
(String variableName) RetrievesBoolean
execution variable with the given variableNamedefault byte[]
getByteArray
(String variableName) Retrievesbyte[]
execution variable with the given variableNameList
<org.hl7.fhir.r4.model.Task> default Date
RetrievesDate
execution variable with the given variableNamedefault Double
RetrievesDouble
execution variable with the given variableNamedefault File
RetrievesFile
execution variable with the given variableNamedefault Integer
getInteger
(String variableName) RetrievesInteger
execution variable with the given variableNameorg.hl7.fhir.r4.model.QuestionnaireResponse
org.hl7.fhir.r4.model.Task
Returns the latestTask
received by this process or subprocess via a intermediate message catch event or message receive task.default Long
RetrievesLong
execution variable with the given variableNamedefault Number
RetrievesNumber
execution variable with the given variableName<R extends org.hl7.fhir.r4.model.Resource>
RgetResource
(String variableName) Retrieves FHIRResource
execution variable with the given variableName<R extends org.hl7.fhir.r4.model.Resource>
List<R> getResourceList
(String variableName) Retrieves FHIRResource
list execution variable with the given variableNamedefault Short
RetrievesShort
execution variable with the given variableNameorg.hl7.fhir.r4.model.Task
Returns theTask
associated with the message start event of the process.default String
RetrievesString
execution variable with the given variableNameRetrieves execution variableBpmnExecutionVariables.TARGET
Retrieves execution variableBpmnExecutionVariables.TARGETS
List
<org.hl7.fhir.r4.model.Task> getTasks()
getVariable
(String variableName) Retrieves execution variable with the given variableNamevoid
setAlternativeBusinessKey
(String alternativeBusinessKey) Sets execution variableBpmnExecutionVariables.ALTERNATIVE_BUSINESS_KEY
default void
setBoolean
(String variableName, Boolean value) Sets execution variable with the given variableName to the givenBoolean
default void
setByteArray
(String variableName, byte[] value) Sets execution variable with the given variableName to the givenbyte[]
default void
Sets execution variable with the given variableName to the givenDate
default void
Sets execution variable with the given variableName to the givenDouble
default void
Sets execution variable with the given variableName to the givenFile
default void
setInteger
(String variableName, Integer value) Sets execution variable with the given variableName to the givenInteger
default void
Sets execution variable with the given variableName to the givenLong
default void
Sets execution variable with the given variableName to the givenNumber
void
setResource
(String variableName, org.hl7.fhir.r4.model.Resource resource) Sets execution variable with the given variableName to the given FHIRResource
void
setResourceList
(String variableName, List<? extends org.hl7.fhir.r4.model.Resource> resources) Sets execution variable with the given variableName to the given FHIRResource
listdefault void
Sets execution variable with the given variableName to the givenShort
default void
Sets execution variable with the given variableName to the givenString
void
Sets execution variableBpmnExecutionVariables.TARGET
void
setTargets
(Targets targets) Sets execution variableBpmnExecutionVariables.TARGETS
.void
setVariable
(String variableName, org.camunda.bpm.engine.variable.value.TypedValue value) Sets execution variable with the given variableName to the givenTypedValue
void
updateTask
(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 newTarget
object.A not
null
correlationKey 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_KEY
variable 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
null
correlationKey should also be used when sending a message aka. Task resource back to an organization waiting for multiple returns.- Parameters:
organizationIdentifierValue
- notnull
endpointIdentifierValue
- notnull
endpointAddress
- notnull
correlationKey
- notnull
if used for sending multiple messages and multiple messages with the same message-name are expected in return- Returns:
- new
Target
object - See Also:
-
createTarget
default Target createTarget(String organizationIdentifierValue, String endpointIdentifierValue, String endpointAddress) Creates a newTarget
object. SeecreateTarget(String, String, String, String)
for sending a correlation-key for 1:n or n:1 relationships.- Parameters:
organizationIdentifierValue
- notnull
endpointIdentifierValue
- notnull
endpointAddress
- notnull
- Returns:
- new
Target
object - 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 thisVariables
implementation- 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 andtarget
as the element variable to loop over this list in a multi instance task or subprocess.- Parameters:
targets
-Target
objects 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 thisVariables
implementation- See Also:
-
createTargets
Creates a new target list. Use${targets.entries}
as a multi instance collection andtarget
as the element variable to loop over this list in a multi instance task or subprocess.- Parameters:
targets
-Target
objects 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 thisVariables
implementation- 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 FHIRResource
list- Parameters:
variableName
- notnull
resources
-
-
getResourceList
Retrieves FHIRResource
list 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
- notnull
resource
- may benull
-
getResource
Retrieves FHIRResource
execution 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 theTask
associated with the message start event of the process.- Returns:
Task
that started the process instance, notnull
- See Also:
-
getLatestTask
org.hl7.fhir.r4.model.Task getLatestTask()Returns the latestTask
received by this process or subprocess via a intermediate message catch event or message receive task.- Returns:
- Last received
Task
of the current process or subprocess, notnull
- See Also:
-
getTasks
List<org.hl7.fhir.r4.model.Task> getTasks()- Returns:
- All
Task
resources received - See Also:
-
getCurrentTasks
List<org.hl7.fhir.r4.model.Task> getCurrentTasks()- Returns:
- All
Task
resources 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
,null
if nothing received yet
-
setVariable
Sets execution variable with the given variableName to the givenTypedValue
- Parameters:
variableName
- notnull
value
- 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
- notnull
value
- may benull
- See Also:
-
getInteger
RetrievesInteger
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 aInteger
- See Also:
-
setString
Sets execution variable with the given variableName to the givenString
- Parameters:
variableName
- notnull
value
- may benull
- See Also:
-
getString
RetrievesString
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 aString
- See Also:
-
setBoolean
Sets execution variable with the given variableName to the givenBoolean
- Parameters:
variableName
- notnull
value
- may benull
- See Also:
-
getBoolean
RetrievesBoolean
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 aBoolean
- See Also:
-
setByteArray
Sets execution variable with the given variableName to the givenbyte[]
- Parameters:
variableName
- notnull
value
- 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
- notnull
value
- may benull
- See Also:
-
getDate
RetrievesDate
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 aDate
- See Also:
-
setLong
Sets execution variable with the given variableName to the givenLong
- Parameters:
variableName
- notnull
value
- may benull
- See Also:
-
getLong
RetrievesLong
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 aLong
- See Also:
-
setShort
Sets execution variable with the given variableName to the givenShort
- Parameters:
variableName
- notnull
value
- may benull
- See Also:
-
getShort
RetrievesShort
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 aShort
- See Also:
-
setDouble
Sets execution variable with the given variableName to the givenDouble
- Parameters:
variableName
- notnull
value
- may benull
- See Also:
-
getDouble
RetrievesDouble
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 aDouble
- See Also:
-
setNumber
Sets execution variable with the given variableName to the givenNumber
- Parameters:
variableName
- notnull
value
- may benull
- See Also:
-
getNumber
RetrievesNumber
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 aNumber
- See Also:
-
setFile
Sets execution variable with the given variableName to the givenFile
- Parameters:
variableName
- notnull
value
- may benull
- See Also:
-
getFile
RetrievesFile
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 aFile
- See Also:
-