HPE XP7 Automation Director User Manual page 84

Hide thumbs Also See for XP7 Automation Director:
Table of Contents

Advertisement

Input for Invoke Automation Service sub-workflow
In the Invoke Automation Service sub-workflow, the following input service parameters are set:
REST Message Name
Request Parameters
Service Instance ID
Task Settings
In the sample workflow Manipulate Input step, user input values are mapped to variables of the Invoke
Automation Service flow. The sample code is as follows:
workflow.scratchpad.serviceInstanceID =
current.variables.had_service_instance_id;
workflow.scratchpad.restMessageName =
current.variables.had_rest_message_name; //REST Message Name
function RecordAccessor(ticket) {
this.setRecord(ticket);
}
RecordAccessor.prototype = {
setRecord: function(ticket) {
this._ticket = ticket;
},
getSysId: function() {
return this._ticket.sys_id;
},
getVariable: function(key) {
return this._ticket.variables[key].toString();
},
getVariables: function() {
return this._ticket.variables;
}
};
workflow.info("Manipulating input from service request");
var recordAccessor = new RecordAccessor(current);
84
Administering Automation Director
//Service Instance ID

Advertisement

Table of Contents
loading

Table of Contents