taskVariables.put("buildingBlockName", buildingBlockName)
taskVariables.put("buildingBlockStep", buildingBlockStep)
taskVariables.put("validResponses", validResponses)
+ taskVariables.put("description", "")
+ taskVariables.put("timeout", "")
TaskService taskService = execution.getProcessEngineServices().getTaskService()
Task manualTask = taskService.newTask(taskId)
taskVariables.put("buildingBlockName", buildingBlockName)
taskVariables.put("buildingBlockStep", buildingBlockStep)
taskVariables.put("validResponses", validResponses)
+ taskVariables.put("description", "")
+ taskVariables.put("timeout", "")
TaskService taskService = execution.getProcessEngineServices().getTaskService()
taskList.setErrorCode(getOptVariableValue(variables, "errorCode"));
taskList.setErrorMessage(getOptVariableValue(variables, "errorMessage"));
taskList.setBuildingBlockName(getOptVariableValue(variables, "buildingBlockName"));
- taskList.setBuildingBlockStep(getOptVariableValue(variables, "buildingBlockStep"));
+ taskList.setBuildingBlockStep(getOptVariableValue(variables, "buildingBlockStep"));
+ taskList.setDescription(getOptVariableValue(variables, "description"));
+ taskList.setTimeout(getOptVariableValue(variables, "timeout"));
String validResponses = getOptVariableValue(variables, "validResponses").toLowerCase();
List<String> items = Arrays.asList(validResponses.split("\\s*,\\s*"));
protected String errorCode;
protected String errorMessage;
protected String buildingBlockName;
- protected String buildingBlockStep;
+ protected String buildingBlockStep;
+ protected String description;
+ protected String timeout;
protected List<String> validResponses;
/**
public void setBuildingBlockStep(String value) {
this.buildingBlockStep = value;
}
+
+ /**
+ * Gets the value of the description property.
+ *
+ * @return
+ * possible object is
+ * {@link String }
+ *
+ */
+ public String getDescription() {
+ return description;
+ }
+
+ /**
+ * Sets the value of the description property.
+ *
+ * @param value
+ * allowed object is
+ * {@link String }
+ *
+ */
+ public void setDescription(String value) {
+ this.description = value;
+ }
+
+ /**
+ * Gets the value of the timeout property.
+ *
+ * @return
+ * possible object is
+ * {@link String }
+ *
+ */
+ public String getTimeout() {
+ return timeout;
+ }
+
+ /**
+ * Sets the value of the timeout property.
+ *
+ * @param value
+ * allowed object is
+ * {@link String }
+ *
+ */
+ public void setTimeout(String value) {
+ this.timeout = value;
+ }
/**
* Gets the value of the validResponses property.
abort,
skip,
retry,
- manual
+ manual,
+ resume
;
public String value() {
taskList1.setOriginalRequestorId("VID");
taskList1.setSubscriptionServiceType("PORT-MIRROR");
taskList1.setTaskId("b5fa707a-f55a-11e7-a796-005056856d52");
+ taskList1.setDescription("test task");
+ taskList1.setTimeout("PT3000S");
taskList1.setValidResponses(validEntries);
taskList.add(taskList1);
"type": "String",
"value": "Configurationactivate SDNO Post-Check",
"valueInfo": {}
+ },"description": {
+ "type": "String",
+ "value": "test task",
+ "valueInfo": {}
+ },"timeout": {
+ "type": "String",
+ "value": "PT3000S",
+ "valueInfo": {}
},"type": {
"type": "String",
"value": "fallout",