wfm.GetGlobalScripts

This job returns the global scripts for a workflow model.

1. Input Parameters

Name Type Required Description

WorkflowId

STRING

Yes

ID of the workflow model

OrganisationId

STRING

Yes

ID of the organization

Code

INT

Yes

0 = no script code is returned; 1 = script code is returned

2. Output Parameters

Name Type Dependency Description

Scripts

BASE64

The global scripts in XML format (see note)

3. Return Value

(INT): 0 = Job successful, otherwise error code.

4. Note

Structure of Scripts
<Scripts>
  <Script Id="" Type="2"><![CDATA[...]]></Script>
  <Script Id="" Type="3"><![CDATA[...]]></Script>
</Scripts>

Script — structure characterizing a global script:

  • Id (STRING): Script ID

  • Type (INT): indicates whether it is a server script (2) or client script (3)