Order

The
ORDER
execute reorders the requester’s list for a resource.
The format and return for this execute includes:
Execute Format
A
FactoryTalk Batch
Server supports an execute with this format:
[ORDER(
Item,UserID,ResourceID,OwnerID,NextOwnerID,
Position
)]
where:
Item
Item name as specified by the client.
UserID
User identification entered into the event journal associated with this event.
ResourceID
Resource’s Equipment ID whose requester’s list is to be reordered.
OwnerID
Resource’s unique ID to be moved in the requester’s list.
NextOwnerID
Resource’s unique ID, in the position within the requester’s list, which the OwnerID is requesting. If Position is RELATIVE, the OwnerID resource will be positioned prior to the NextOwnerID resource.
Position
Position within the requester’s list in which the resource should be placed:
  • RELATIVE - indicates that the resource should be placed somewhere other than at the end of the list.
  • TAIL - indicates that the resource should be placed at the end of the list. In this case the OwnerID and NextOwnerID parameters are ignored.
Action
A successful ORDER execute results in a change to the requester’s list for the ResourceID.
Return Format
The item populates with this data:
SUCCESS: | FAIL:
<message>
| FAILED
The following table shows an example of the return on this execute.
Example:
An execute string:
ORDER(Item,UserID,12,22,1,RELATIVE)
Provide Feedback
Have questions or feedback about this documentation? Please submit your feedback here.
Normal