Polling for Request Status

Polling has been introduced in the App Broker, which is been triggered by ServiceNow workflow to poll for request statuses for different steps in the workflow.

The following steps are run in the background by App Broker, when the workflow triggers to fulfill the request submitted.

Workflow trigger submits the request to App Broker and then performs the validations in the background. This means the workflow is submitted first, before running the validations.
App Broker will perform the validations in the following order on successful request submission:
Catalog
User
Device
Check if the catalog is licensable
Check for license availability
Check for license reservation
Using the polling mechanism, workflow will poll for request status and it will iterate for a configured number of times with intervals. When all the validations are successful, the request will be processed for deployment. The following scenarios can happen when validation fails:
If any validation step fails, it will retry for configured number of times until it is successful.
If any validation step fails even after all the retries, the polling will be cancelled, this will go to the notification step and ends the workflow.
The following are scenarios while polling for request deployment status from App Broker:
Workflow will poll for request deployment status until it receives Deployed, Error, Prerequisites Failed, for each step, respectively.
Workflow will poll for defined iterations with interval configured accordingly, until it receives a final deployment status.
An administrator can customize the iterations and interval to poll configurations accordingly.

Timer for Polling

When the workflow is submitted from ServiceNow in the background, it will start the polling to perform the validations (as mentioned previously) in App Broker. By default, polling interval is one minute, and number of iterations is set to 10 times. An administrator can configure these values in the ServiceNow workflow accordingly.

This timer is applicable to both polling of validations and request deployment status.

To configure the polling iteration and time interval

1. Launch the ServiceNow instance.
2. In the search box, enter Workflow.
3. In the search results, click Workflow Editor.

The Workflow Editor opens in a new page.

4. On the right pane, under the Workflows tab, filter the workflows using the value Flexera.
5. In the search result, click the Flexera - App Broker Software Request.
6. On left top corner, click Workflow Actions and select the Checkout option from menu.
7. Double-click Iterate the Polling Status step, and then:
a. Configure the Allowed iterations property with desired value for number of iterations.
b. Click Update.
8. Double-click Timer for Polling, and:
a. Enter the value to define the duration interval in Days, Hours, Minutes.
b. Click Update.
9. Click Publish to publish the workflow.

Custom Step

This custom step will help to add the required customized step in the workflow. By default, the custom step is configured to resubmit request step, which will be initiated upon the user, device validation failure.

Note:To know more about, how to update and configure App Broker update set into ServiceNow, see Uploading and Configuring the App Broker Cloud Update Set into ServiceNow.