Workflow Application Management
Application Management Overview
These services enable workflow templates to be managed and tracked for devices enabled in the account. The management consist of direct web services and response transaction through the Qualcomm Service Portal Event Subscription Service (ESS). These perform the same functions that can be done in the UI for viewing (i.e. listing) and deploying workflow templates. The upload of workflow templates is only accessible through the user interface.
Application Web Service Invocation
The WMC web services for application management provide listing and manipulation methods. Invoke getWorkflows to list currently available workflows, and deployWorkflow to configure one or more devices.
Retrieving Available Workflows
Use the WMC web service URL with the getWorkflows method. The method does not take any parameters. It returns a detailed listing of the workflows currently published and available to be deployed.
Invocation
|
Sample Response
|
Understanding the Workflow List Return Values
The table below describes the fields that appear for each published workflow template.
Element | Example | Description |
---|---|---|
mobileType |
MPC110, MCP200 |
The type of device that this workflow template can support |
packageHandle |
11434 |
Numeric code associated with the published workflow template |
packageName |
WFTST3_Workflow_MyWorkflow_A_7.6_24 |
The compound name associated with this workflow template |
packageTimestamp |
2011-10-07 19:13:15.773 |
The UTC time the package was published |
packageVersion |
build 24 |
The user-specified information associated with how the package was versioned |
Service Faults
This method has no specific web service faults. Implementations should be able to handle the standard credential errors.
Deploying a Workflow Package
Invocation
|
Successful Cases
A successful response returns a total list of devices processed in the element <totalUA>. Each successful device appears as a distinct <successUA> element.
Response example from above invocation.
|
Failure Cases
Because a deployment can involve multiple devices, integration code should expect to handle failure and success cases in a single invocation. Failures will always be listed first. The example below shows two failures. The first case describes a template/device mismatch, where the device was an MCP100, but the workflow template supported only MCP110 and MCP200.
|
Service Faults
A web service fault will be returned if the workflow name or handle are omitted (WSDL describes these as optional, but must be provided in this release of the interface). Because both elements must be provided, if there is a mismatch WMC will not know the intention and returns an error. Example errors are show below.
|
Handle was not provided on input.
|
Empty Workflow Name
|
Event Subscription Service Integration
Application deployment is a multi-part process. The first process is the synchronous web service invocation to deployWorkflow. The second part is the asynchronous process of the delivery status. This status is conveyed in the ESS T.6.04.0 transaction. If a workflow template has not been deployed to a device, the T.6.04.0 transaction will still contain workflowPackage* elements, but these will be empty.
T.6.04.0 Events
Event Fields
The remaining fields describe the workflow package application that has been deployed to the given device. If these elements do not have a value, a workflow package has not been deployed to the device.
T.6.04.0 Element | Description |
---|---|
workflowPackageName |
Human readable name assigned to the deployed package in WMC |
workflowPackageVersion |
User assigned version when deploying package in WMC |
workflowPackageHandle |
Unique numeric value assigned as package receipt |
workflowPackageTS |
Time of deployment (UTC) |
Workflow Not Deployed
The example below shows a device that has not been assigned a workflow template. When a new device is first provisioned to your account, expect to see a similar appearing T.6.04.0 transaction.
|
Workflow Deployment In Progress
Because the application code is being delivered over the air, it may take some time to update the device. During this period, the workflow template status will be "Transmitting", or code 1. The device must be able to communicate with the Qualcomm Network Management Center in order to complete. Make sure the unit is on the air. Contact Qualcomm Support if you need assistance.
|
Workflow Deployment Complete
A status code of zero (0), indicates the installation has completed and there were no reported errors.
|
Other Codes
The <workflowPackageStatus> indicates whether the workflow template has completed the installation.
Other Codes
The <workflowPackageStatus> indicates whether the workflow template has completed the installation.
workflowPackageStatus
|
Description
|
---|---|
0 |
Completed |
1 |
Transmitting |
2 |
Failed |
The equipment described the type of device, including the address, vehicle ID, and mobile type. Workflow is supported on mobileType 12,13, and 14.
mobileType
|
Description
|
---|---|
0 |
Unknown |
1 |
MCT |
2 |
TMCT |
3 |
OmniOne |
4 |
MCP |
10 |
UTT |
11 |
Tethered |
5 |
MCP100 |
6 |
MCP110 |
7 |
MCP200 |
8 |
MCP50 |
The workflow service level indicates the package enrollment.
Level of Service
|
Description
|
---|---|
0 |
No Service: unit pulled from service |
1 |
Qualcomm base Circle-of-Service offering |
2 |
Advanced Workflow |
3 |
Reserved |
4 |
Qualcomm Trip Manager |
Error Handling
There is no special error handling on T.6.04.0 transactions. The integration code should process generic SOAP faults and any errors returned by the ESS dequeue method.
Best Practice Device Management Integration
The integration system should minimally track active units in the account.
Condition
|
Action
|
---|---|
Unrecorded UA |
Add device to list of active units for this account |
Level-of-Service = 0 |
Remove device from list of active units for this account |