'suspend_activity' Command

The command affects the activities with the status 'started' or 'pending' in the following ways:

For an existing activity in Oracle Field Service which has a 'pending' status, the command changes the activity type to ‘not-ordered’, without changing its status.

For an existing activity in Oracle Field Service which has a 'started' status, the command will:
  • set the status of the existing started activity to 'pending'.

  • create a new activity with the 'suspended' status with the same properties of the existing activity.

set the 'end_time' of the suspended activity to command/time

update pending activity properties if 'command/appointment/properties' element is present

The command will fail if:

  • activity does not exist in OFS

  • activity status is other than started

  • 'command/time' is less than activity start time