public class ParsedAssignmentsInfo extends Object
AssignmentsInfo represents variables, their types, and their assignments in a Task.
It has historically been represented through a delimited String. The format of such a String follows the following EBNF:
AssignmentInfoString ::= InputDeclarations ‘|’ OutputDeclarations ‘|’ Assignments InputDeclarations ::= (Declaration (‘,’ Declaration)*)? OutputDeclarations ::= (Declaration (‘,’ Declaration)*)? Declaration ::= ( identifier ( ‘:’ type )? ) Assignments ::= (Assignment (‘,’ Assignment)* )?; Assignment ::= InputAssignment | OutputAssignment; InputAssignment ::= ‘[din]’ identifier ‘->’ identifier; OutputAssignment ::= ‘[dout]’ identifier ‘->’ identifier;Where identifier is a valid identifier, and type is a valid identifier representing a data type. Semantically, the identifiers that has been declared in an InputDeclaration or an OutputDeclaration, or in a ProcessVariable that contains this Task
The input String follows the following rules:
| | in | inSet | out | outSet | assignments | +------+----+-------+-----+--------+-------------+ |Catch | | | x | | x | |Throw | x | | | | x | |Other | | x | | x | x | +------+----+-------+-----+--------+-------------+
Where Other are CallActivity, Task, SubProcess.
The distinction between input/inputSet, and output/outputSet is really not necessary because we just need to know what are the inputs and what are the outputs.
Thus, we can just use one field for inputs, and one field for outputs.
| Constructor and Description |
|---|
ParsedAssignmentsInfo(DeclarationList inputs,
DeclarationList outputs,
AssociationList associations,
boolean alternativeEncoding) |
| Modifier and Type | Method and Description |
|---|---|
List<InitializedVariable.InitializedInputVariable> |
createInitializedInputVariables(String parentId,
VariableScope variableScope,
Set<DataObject> dataObjects) |
List<InitializedVariable.InitializedOutputVariable> |
createInitializedOutputVariables(String parentId,
VariableScope variableScope,
Set<DataObject> dataObjects) |
static ParsedAssignmentsInfo |
fromString(String encoded) |
AssociationList |
getAssociations() |
DeclarationList |
getInputs() |
DeclarationList |
getOutputs() |
boolean |
isEmpty() |
static ParsedAssignmentsInfo |
of(AssignmentsInfo assignmentsInfo) |
String |
toString() |
public ParsedAssignmentsInfo(DeclarationList inputs, DeclarationList outputs, AssociationList associations, boolean alternativeEncoding)
public static ParsedAssignmentsInfo of(AssignmentsInfo assignmentsInfo)
public static ParsedAssignmentsInfo fromString(String encoded)
public DeclarationList getInputs()
public DeclarationList getOutputs()
public AssociationList getAssociations()
public List<InitializedVariable.InitializedInputVariable> createInitializedInputVariables(String parentId, VariableScope variableScope, Set<DataObject> dataObjects)
public List<InitializedVariable.InitializedOutputVariable> createInitializedOutputVariables(String parentId, VariableScope variableScope, Set<DataObject> dataObjects)
public boolean isEmpty()
Copyright © 2001–2021 JBoss by Red Hat. All rights reserved.