wfm.AdminGetProcessActivities

This job returns all activities for a process.

1. Input Parameters

Name Type Required Description

ProcessId

STRING

Yes

GUID of the process.

2. Return Value

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

3. Output Parameters

Name Type Dependency Description

Activities

BASE64

Contains requested information in XML format.

Structure of Activities
<Activities>
  <Activity>
    <Name></Name>
    <Id></Id>
    <RActivityId></RActivityId>
    <CreationTime></CreationTime>
    <Owner></Owner>
    <OwnerId></OwnerId>
    <AccessTime></AccessTime>
    <EndTime></EndTime>
    <ReminderTime></ReminderTime>
    <ReminderState></ReminderState>
    <State></State>
    <ClosureTime></ClosureTime>
    <WorkItem></WorkItem>
    <LoopCount></LoopCount>
    <ExecutionPoints></ExecutionPoints>
    <RLoopId></RLoopId>
    <ActivityNr></ActivityNr>
  </Activity>
</Activities>
Detailed description of Activity elements:
Name (STRING) — Name of the activity.
Id (STRING) — GUID of the activity (from the workflow model).
RActivityId (STRING) — Instance ID of the activity.
CreationTime (INT) — Creation time of the activity on the server.
Owner (STRING) — Owner; has personalized the activity.
OwnerId (STRING) — ID of the owner.
AccessTime (INT) — Time of the last access to the activity.
EndTime (INT) — Time when the activity ended.
ReminderTime (INT) — Reminder period.
ReminderState (INT) — Reminder status (1 = reminder period exceeded, otherwise 0).
State (INT) — Activity status (bitmask):
  0x00000001 (1) — The activity was initialized.
  0x00000002 (2) — The activity was started (e.g. variables were created).
  0x00000004 (4) — The StartActivity event was executed.
  0x00000008 (8) — The EndActivity event was executed.
  0x00000010 (16) — Only for loops: The loop condition was checked.
  0x00000020 (32) — Only for loops: The loop body is being processed.
  0x00000040 (64) — Only for work steps: The work step is ready in the inbox.
  0x00000080 (128) — Only for work steps: The work step is personalized.
  0x00000100 (256) — Waiting for the expiration of a lock period.
  0x00000400 (1024) — The activity was executed (e.g. a work step was forwarded or a loop activity was completely processed).
  0x00000800 (2048) — Subsequent activities were calculated and possibly already created.
  0x00001000 (4096) — The activity is finished, but no subsequent activities have been initiated yet.
  0x00002000 (8192) — The activity was suspended by a user.
  0x00004000 (16384) — The activity is finished.
  0x00008000 (32768) — Only for multi-instance activities: The activity was created.
  0x00010000 (65536) — Only for ad-hoc activities: The ad-hoc activity was created.
  0x00020000 (131072) — Activity canceled.
  0x00040000 (262144) — Only for ad-hoc activities: The ad-hoc activity is being executed.
  0x10000000 (268435456) — The activity was suspended by the system due to an error.
ClosureTime (INT) — Lock period for the activity.
WorkItem (INT) — 1 = activity visible in inboxes, otherwise 0.
LoopCount (INT) — If it is a loop activity, the number of loop iterations is specified here, otherwise 0.
ExecutionPoints (INT) — Execution points for job wfm.AdminRollbackProcess: 100 = activity is created, 200 = activity is finished.
RLoopId (STRING) — Instance ID of the enclosing loop; empty if none exists.
ActivityNr (INT) — Indicates at which position in the process the activity was created.