Components

ActivityDasContractProperties

<ActivityDasContractProperties appStarted loadedContract loadContract loadContractError />

Constructor

# <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.

View Source components/ActivityDasContractProperties.js, line 30

Members

Object

# inner constant toggleSavedToastRef

Toggle saved modal reference hook.

View Source components/ActivityDasContractProperties.js, line 398

Methods

# inner areActivitiesPresent(arr) → {boolean}

Determines if there are activities in the array.

Parameters:
Name Type Description
arr Array.<Array>

View Source components/ActivityDasContractProperties.js, line 131

Indicator of the presence of activities in the array.

boolean

# inner filterElements()

Filters elements from "loadedContractJSON" in a destructured array and sets result to "modelElements". Sets the state of the activities presence indicator.

View Source components/ActivityDasContractProperties.js, line 97

# inner getAllElementsArr(elementsWithinLanesArr) → {Array}

Gets every element in the process model.

Parameters:
Name Type Description
elementsWithinLanesArr Array

Array of elements within lanes.

View Source components/ActivityDasContractProperties.js, line 170

Every element in the process model.

Array

# inner getElementsWithinLanesArr(processArr) → {Array}

Gets every element within every lane.

Parameters:
Name Type Description
processArr Array

Array of processes.

View Source components/ActivityDasContractProperties.js, line 151

Every element within every lane.

Array

# inner getFullClassifiedElementsArr(elementsArr) → {Array}

Classifies an array of elements into 5 categories.

Parameters:
Name Type Description
elementsArr Array

Array of elements.

View Source components/ActivityDasContractProperties.js, line 192

"Destructured" array of elements classified.

Array

# inner getMinimalClassifiedElementsArr(elementsArr) → {Array}

Classifies an array of elements into 3 categories.

Parameters:
Name Type Description
elementsArr Array

Array of elements.

View Source components/ActivityDasContractProperties.js, line 324

"Destructured" array of elements classified.

Array

# 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.

View Source components/ActivityDasContractProperties.js, line 235

Every non-subprocess element inside a subprocess tree.

Array

# inner joinArray(arr)

Joins a destructured array into a "joint" array.

Parameters:
Name Type Description
arr Array

Array to be joined.

View Source components/ActivityDasContractProperties.js, line 382

# inner redirectIfNotReady()

Redirects the user to "Home" if there's no loaded contract or a load contract error.

View Source components/ActivityDasContractProperties.js, line 65

# 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.

View Source components/ActivityDasContractProperties.js, line 255

# inner updateLoadedContract()

Updates "loadedContract" from the store with the data in "loadedContractJSON".

View Source components/ActivityDasContractProperties.js, line 403

# 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.

View Source components/ActivityDasContractProperties.js, line 357

# 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.

View Source components/ActivityDasContractProperties.js, line 296