Share via


SP.WorkflowServices.WorkflowInstance object (sp.workflowservices)

Represents a workflow instance running in Workflow Manager.

Applies to: apps for SharePoint | SharePoint Foundation 2013 | SharePoint Server 2013

var object = new SP.WorkflowServices.WorkflowInstance()

Members

The WorkflowInstance object has the following members.

Constructor

The WorkflowInstance object has the following constructor.

Constructor

Description

WorkflowInstance

Initializes a new instance of a WorkflowInstance object.

Methods

The WorkflowInstance object has the following methods.

Method

Description

initPropertiesFromJson

Properties

The WorkflowInstance object has the following properties.

Property

Description

faultInfo

Gets the error string or exception information if the workflow instance faults.

id

Gets the unique identifier of the workflow instance.

instanceCreated

Retrieves the date and time when the workflow instance was created.

lastUpdated

Retrieves the date and time when this workflow instance state was last persisted.

properties

An IDictionary object containing the properties of the workflow instance.

status

Gets the runtime status of the workflow instance from the WorkflowStatus enumeration.

userStatus

Gets or sets a custom status set by workflow authors for their workflow instances.

workflowSubscriptionId

Retrieves the unique Id of the subscription that instantiated this workflow instance.