Resource Description for Workitem

Properties for Workitem

Property Name Type Required Is Collection?
Property Name Type Required Is Collection?
callToAction string
case Case
createdDatetime DateTime
endedDatetime DateTime
progressDenominator int
progressNumerator int
statusString string
title string
workflowExecutionId int
workflowNodeId int

SDK Example for PHP

<?PHP

use Arbor\Api\Gateway\RestGateway;
use Arbor\Model\ModelBase;
use Arbor\Model\Workitem;

ModelBase::setDefaultGateway(
    new RestGateway(
        "https://my-school.arbor.sc/rest-v2",
        "my.username@my-school.arbor.sc",
        "3bh54435v3gh45"
    )
);

$workitem = Workitem::retrieve(5433);

$case = $workitem->getCase();
$title = $workitem->getTitle();
$workflowExecutionId = $workitem->getWorkflowExecutionId();
$workflowNodeId = $workitem->getWorkflowNodeId();
$createdDatetime = $workitem->getCreatedDatetime();
$endedDatetime = $workitem->getEndedDatetime();
$statusString = $workitem->getStatusString();
$progressNumerator = $workitem->getProgressNumerator();
$progressDenominator = $workitem->getProgressDenominator();
$callToAction = $workitem->getCallToAction();

 

Related Resources

See also: Case