I’ve a question:
Is possible abort/cancel/suppress the operator execution by your own PRE-EXECUTION CODE?
If don’t possible, we have others ways to abort an operator?
Thank you in advance!
Thank you IanRich
I can't find the "ReplyTaskRequest" method, but instead I found the "executePendingInteraction" method that let to me "Reject" a task.
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:itp="http://www.ca.com/itpam">
<!--You have a CHOICE of the next 2 items at this level-->
<!--1 or more repetitions:-->
I am not sure about in pre-execution code, but you can set a timeout and control what happens after that timeout limit is reached, including aborting the operator.
Thank you MWNiebuhr by response, your recomendation works, but my situation is that a operator already running I need stop/erase/abort it's if other change been ocurred.
In CA WORKFLOW you can configure "Exception" in a node and it's activated by another Flag node...you know that?.
Then, i imagine a similar way in PAM
So you need to stop an operator if another operator has completes or some other conditions are met?
You may simply need to use the Evaluate Expression operator, possibly in conjunction with the Or operator, to allow PAM to progress forward if one of a set of conditions would be met.
You are right MWNiebuhr
But, to explain my question I will try to use a scenario:
So, i need know about how implement a code o way to kill an operator.
The OR operator will accomplish this for you.
When you complete one of the two forms, it will cancel the entire other path:
Both tasks will disappear from the task list after a couple of minutes.
Rather than 'killing' the operator I would suggest that you could easily reply to the task (using the REST API) once you have a reply from either one of the Tasks.
It would disappear from their task list soon after the process is completed, if you really wanted to hide the task immediately, you could also transfer the task to a 'fake' user, and then mark it as completed.
I believe that would make the task disappear from their task list immediately.
For example, you start up two user tasks, one has Task ID 1153871, and the other Task ID 1153872.
If the first user completed his task (# 1153871), you could then use the CA PA REST API to send a ReplyTask, or a TransferTask for Task ID 1153872.
That task would then be marked as completed/cancelled and would disappear from the task list.
Using the REST sample from the Web Services Reference Guide, here is a little example of not approving TaskID 1153872 and marking is as Status = "Was completed by User 1"
<Value>Was completed by User 1</Value>
Hope this helps you!
Sorry, my example was for the REST API, not the SOAP API.
You are correct, executePendingInteraction is the SOAP equivalent.
Glad it helped you out.
Retrieving data ...