Hi Maayan,
* When all Tasks in a Workflow are completed, the Workflow ends. If you observe any other type of behavior, please contact Tech Support. Perhaps there is a 'stuck' workflow (Script or REST Service) holding the WF open?
* Dynamically cancelling a Task will require coding with a combination of Script and/or Service Tasks using the WF APIs. See https://developer.sas.com/rest-apis/workflows
Rick Matthews
Senior Software Manager • Fraud and Security Intelligence
Tel: + 1 919 531 6945 • Mobile: + 1 919 995 3599 • Rick.Matthews@sas.com
Cary World Headquarters • 100 SAS Campus Drive • Cary, NC, 27513
www.sas.com/
SAS® … THE POWER TO KNOW®