Navigation:  PHP API (Workflow) >

Editing the value of a process attribute

Previous  Top  Next

To edit the value of a process attribute, use the setAttributeValue method passing the parameters: Attribute ID# and value.

 

setAttributeValue("Process attribute ID #", "Value")

 

[Example for attribute of the Time type:

$workflow_api->setAttributeValue("Attribute-Time", "08:00");

 

Example for attribute of the Date type:

$workflow_api->setAttributeValue("Attribute-Date", "2019-07-31");

 

Example for attribute of the Number type:

$workflow_api->setAttributeValue("Attribute-Number", "1234.45");

 

Example for attribute of the Text type:

$workflow_api->setAttributeValue("Attribute-Text", "ABC");

 

Example for attribute of the List with multiple values type:

$workflow_api->setAttributeValue("Attribute-Multi-Value", array("Value 1","Value 2"));