# <ActivityDasContractProperties appStarted loadedContract loadContract loadContractError />
Enables editing activity DasContract properties. Shows a process viewer for reference.
PropTypes:
Name | Type | Required | Description | Default |
---|---|---|---|---|
appStarted |
bool | No | App started indicator from store. | |
loadedContract |
object | No | Loaded contract from store. | |
loadContract |
func | Yes | Action to load a contract in the store. | |
loadContractError |
bool | No | Load contract error indicator from store. |
Members
Methods
# inner areActivitiesPresent(arr) → {boolean}
Determines if there are activities in the array.
Parameters:
Name | Type | Description |
---|---|---|
arr |
Array.<Array> |
Indicator of the presence of activities in the array.
# inner filterElements()
Filters elements from "loadedContractJSON" in a destructured array and sets result to "modelElements". Sets the state of the activities presence indicator.
# inner getAllElementsArr(elementsWithinLanesArr) → {Array}
Gets every element in the process model.
Parameters:
Name | Type | Description |
---|---|---|
elementsWithinLanesArr |
Array | Array of elements within lanes. |
Every element in the process model.
# inner getElementsWithinLanesArr(processArr) → {Array}
Gets every element within every lane.
Parameters:
Name | Type | Description |
---|---|---|
processArr |
Array | Array of processes. |
Every element within every lane.
# inner getFullClassifiedElementsArr(elementsArr) → {Array}
Classifies an array of elements into 5 categories.
Parameters:
Name | Type | Description |
---|---|---|
elementsArr |
Array | Array of elements. |
"Destructured" array of elements classified.
# inner getMinimalClassifiedElementsArr(elementsArr) → {Array}
Classifies an array of elements into 3 categories.
Parameters:
Name | Type | Description |
---|---|---|
elementsArr |
Array | Array of elements. |
"Destructured" array of elements classified.
# inner getSubProcessTreeElementsArr(subProcessNode, treeElementsArr) → {Array}
Gets every non-subprocess element inside a subprocess tree.
Parameters:
Name | Type | Description |
---|---|---|
subProcessNode |
Array | Current subProcess node. |
treeElementsArr |
Array | Array of tree elements. |
Every non-subprocess element inside a subprocess tree.
# inner joinArray(arr)
Joins a destructured array into a "joint" array.
Parameters:
Name | Type | Description |
---|---|---|
arr |
Array | Array to be joined. |
# inner redirectIfNotReady()
Redirects the user to "Home" if there's no loaded contract or a load contract error.
# inner updateElement(modelElementToUpdate, newData)
Updates a model element.
Parameters:
Name | Type | Description |
---|---|---|
modelElementToUpdate |
Object | Model element to update. |
newData |
Object | New data for the model element to update. |
# inner updateLoadedContract()
Updates "loadedContract" from the store with the data in "loadedContractJSON".
# inner updateModelElements(modelElementToUpdate, newData)
Updates an element in "modelElement".
Parameters:
Name | Type | Description |
---|---|---|
modelElementToUpdate |
Object | Model element to update in "modelElements". |
newData |
Object | New data for the model element to update. |
# inner updateTask(newTask, process)
Updates a task from a process or subprocess.
Parameters:
Name | Type | Description |
---|---|---|
newTask |
Object | Task to update. |
process |
Object | Process or subprocess to update. |