Navigation:  PHP API (Workflow) >

Searching for the value of a process attribute

Previous  Top  Next

To search for the value of the process attribute, use the getAttributeValue method, passing on as attribute ID # parameter.

 

getAttributeValue("Attribute ID#")

 

Return: The method returns the attribute value. For multiple-option list-type attributes, an Array is returned with the values.

 

Example for attribute of the Time type:

$value = $workflow_api->getAttributeValue("Attribute-Time");

Return example: 008:00

 

Example for attribute of the Date type:

$value = $workflow_api->getAttributeValue("Attribute-Date");

Return example: 2017-12-31

 

Example for attribute of the Number type:

$value = $workflow_api->getAttributeValue("Attribute-Number");

Return example: 1234.56000000

 

Example for attribute of the Text type:

$value = $workflow_api->getAttributeValue("Attribute-Text");

Return example: ABCD

 

Example for attribute of the List type:

$value = $workflow_api->getAttributeValue("Attribute-List");

Return example: Value 1

 

Example for attribute of the list of values with multiple values type:

$value = $workflow_api->getAttributeValue("Attribute-Multi-Value");

Return example:

Array(

[0] => Value 1

 

[1] => Value 2))