Task Priority in Activity Modeler in Media Management

Options

Hi Team,

We have a requirement to set the priority of the task based on the user inputs. We would like to understand, Is there any way to set the priority of the task dynamically for the user's task in Media Management. We have been trying to achieve this through different possibilities. We are not able to figure it out so far.

We wrote a TaskCreation event listener to update the task priority. But we don't see any methods to update the task details. We do see a method to update task data and not for Task object.

Can you kindly let us know how to update the priority of the task dynamically?



Thanks in advance

Comments

  • Dave_McGough_Jr.
    edited May 26, 2021 #2
    Options

    Hi,

    Thank you for the feedback. Currently, the priority is not a contextual variable and can only be set in the step itself. E.g., you cannot pass in a priority via a form in the current version. We do have a backlog item and are tracking this one for a future release.

    Thanks,

    Dave

  • Hi @Dave_McGough_Jr.

    Thanks for your information.

  • No problem, Can you confirm your use case?

  • Hi @Dave_McGough_Jr.

    Our use case is, as a user who triggers the workflow should set the priority of the task. We know that Priority is not a context variable and would not be set through the activity modeler dynamically. We took an alternate path through eventlistener. When the task is created, the respective event listener is getting triggered. We handled the priority updation in Task in Task Creation EventListener.

    Basically, we did not find any specific JDK methods to update Task details (i.e. Updating Priority details). I hope, it will be available in the future version of OTMM.

  • Interesting, what do you mean you didn't find any specific JDK methods to update task details? In your event listener approach, what SDK calls did you use to accomplish setting the priority?