Workflow Related Operations

19.4.3.8 WF_GetWorkflowStatus

DESCRIPTION 

Allows an authenticated user to retrieve the status of a certain T-workflow (ID) attached to a specific asset.
This operation is useful to, for example, manage federated assets imported from the current site onto an external site (the requester).

INPUT

  • _user: Login name of the executor;
  • _pwd: Password of the executor;
  • _instanceClass: Id of the T-workflow to be consulted;
  • _IdAsset: ID of the target asset;

OUTPUT 

<WKF status="Workflow active"><Action name="Quality check"/></WKF>

XSD (XML Schema Definition)

<?xml version="1.0" encoding="utf-8"?>
<xs:schema id="WSApiResponse" xmlns="" xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata">
<xs:element name="WSApiResponse" msdata:IsDataSet="true" msdata:Locale="en-US">
  <xs:complexType>
    <xs:choice minOccurs="0" maxOccurs="unbounded">
      <xs:element name="Function">
        <xs:complexType>
          <xs:sequence>
            <xs:element name="WKF" minOccurs="0" maxOccurs="unbounded">
              <xs:complexType>
                <xs:sequence>
                  <xs:element name="Action" minOccurs="0" maxOccurs="unbounded">
                    <xs:complexType>
                      <xs:attribute name="name" type="xs:string" />
                    </xs:complexType>
                  </xs:element>
                </xs:sequence>
                <xs:attribute name="status" type="xs:string" />
                <xs:attribute name="ucode" type="xs:string" />
              </xs:complexType>
            </xs:element>
          </xs:sequence>
          <xs:attribute name="Name" type="xs:string" />
        </xs:complexType>
      </xs:element>
    </xs:choice>
  </xs:complexType>
</xs:element>
</xs:schema>