Defining Multi-Request Array Slots
Each atomic operation in a multi-request service creates an object, sets a value, or appends a value in a specific slot in the multi-request array.
A multi-request service might create a user, a subscription, a device, and purchase offers, and provision groups. In this scenario, each request uses these slot definitions in the array as
configured in the MtxRestServices
multi-request
definition:- request[0] = User create
- request[1] = Subscription create
- request[2] = Device create
- request[3] = Add device to the subscriber
- request[4] = Adds the subscription to the user
This same multi-request service might use the following logic and slot array definitions to create groups, assign membership and purchase offers:
- If Group BA, Group BA Membership, Group RA, Group RA Membership, Payment Method and Subscriber Offer Purchase are present then:
- request[5] = Group BA create
- request[6] = Group RA create
- request[7] = Group BA membership
- request[8] = Group RA membership
- request[9] = Group payment method
- request[10]= Offer purchase
- Else if Group BA, Group BA Membership, Group RA, and Group RA Membership are present then:
- request[5] = Group BA create
- request[6] = Group RA create
- request[7] = Group BA membership
- request[8] = Group RA membership
- Else if Group RA, Group RA Membership
- request[5] = Group RA create
- request[6] = Group RA membership
See the example custom multi-request REST service for more information.