BPM, Workflow, and Case

BPM, Workflow, and Case

Come for answers. Stay for best practices. All we’re missing is you.

 View Only
  • 1.  Failed task Assignments

    Posted 10/01/20 09:06 PM

    I would like to know if a task assignment failed using

    var myTask=tw.system.findTaskById(12345);

    myTask.assignedTo(tw.system.org.findUserById(1234));

    Does myTask.assignedTo returns anything useful for this purpose?

    Thanks!



    #BusinessAutomationWorkflow(BAW)
    #Support
    #SupportMigration


  • 2.  RE: Failed task Assignments

    Posted 10/01/20 10:03 PM

    var myTask=tw.system.findTaskById(12345);



    #BusinessAutomationWorkflow(BAW)
    #Support
    #SupportMigration


  • 3.  RE: Failed task Assignments



  • 4.  RE: Failed task Assignments

    Posted 10/28/20 04:42 PM

    Hi Ivan,

    Based on the JS API reference, your question does not make sense.

    Your example:

    myTask.assignedTo(tw.system.org.findUserById(1234));

    attempts to use the TWTask "assignedTo" as a method. It is not a method. It is a property - and does not accept any parameters.

    If you are trying to perform an assignment, you have a choice of "reassignTo" methods for TWTask that accept a variety of parameters.

    If you are trying to examine who the task is currently assigned to, then

    myTask.assignedTo;

    is supposed to return a TWUser or TWRole the Task is currently assigned to, according to the documentation:

    BAW 19.0.0.3 JavaScript API in processes and service flows



    #BusinessAutomationWorkflow(BAW)
    #Support
    #SupportMigration