ModelWorkflows module

Workflow

A model in the Workflows module, with 11 members for templates, 8 API properties and 17 members for admin templates.

Workflows\Models\Frontend\Workflow Workflows\Models\Api\Workflow Workflows\Models\Backend\Workflow Also in Workflows: BranchApproval BranchComment BranchTransition RevisionBranch Step Target Transition
View
What Smarty and Twig templates receive. Properties in REST API responses and job payloads. What admin screen templates receive when you override them.

Templates view

Properties 11

Take no arguments.

# getId()
?int
# getName()
?string
# isDefault()
bool
# getCreated()
?DateTime
Date the record was created.
# getModified()
?DateTime
Last modification date for the record.
# getTargets()
?Collection<Target>
# getSteps()
?Collection<Step>
# getTransitions()
?Collection<Transition>
# isNewRecord() Not in API & Jobs
bool
Check if the record is a new record
# isHierarchicalModel() Not in API & Jobs
bool
Check whether a model is a hierarchical model, i.e. can have children
# isVersionedModel() Not in API & Jobs
bool
Check whether a model is versioned

API & Jobs view

API & JobsEach property is a key in REST API responses and job payloads. Its name is the template getter without get, is or has. Methods that need arguments are not available here.

Properties 8

Read-only values on the record.

# id
?int
# name
?string
# default
bool
# created
?DateTime
Date the record was created.
# modified
?DateTime
Last modification date for the record.
# targets
?Collection<Target>
# steps
?Collection<Step>
# transitions
?Collection<Transition>

Admin view

AdminAvailable in cdna-admin templates. Copy an admin template into your site repository to change how this record is edited.

Properties 17

Take no arguments.

# getId()
?int
# getName()
?string
# isDefault()
bool
# getCreated()
?DateTime
Date the record was created.
# getModified()
?DateTime
Last modification date for the record.
# getTargets()
?Collection<Target>
# getSteps()
?Collection<Step>
# getTransitions()
?Collection<Transition>
# isNewRecord() Not in API & Jobs
bool
Check if the record is a new record
# isHierarchicalModel() Not in API & Jobs
bool
Check whether a model is a hierarchical model, i.e. can have children
# isVersionedModel() Not in API & Jobs
bool
Check whether a model is versioned
# getAvailableEntities() Admin only
array
Get the available editors for text inputs
# getDiagramSteps() Admin only
array
Get the diagram steps
# getDiagramTransitions() Admin only
array
Get the diagram transitions
# getEditUrl() Admin only
?string
Get the url for editing the record.
# getDeleteUrl() Admin only
?string
Get the url for deleting the record.