Track when a task is opened

I had a teammate ask me how to track a task is opened the first time.  He wanted to fire either a startProcess or write to DSE in a localVariable but I told him you could only do that on saveInto.  I proposed creating a task report and either using the status of Assigned -> Accepted or Owner is not null to show the task has been opened and accepted (accepted has automatically when there is only one assignee and the task is opened).

Is this the only way to track when a task is opened?

  Discussion posts and replies are publicly visible

Parents
  • 0
    Certified Lead Developer

    From documentation:

    owner tp!owner Task owner.
    • When a task is assigned, the Task Owner property has a null value until the assigned user views the task or until a user in the assigned group accepts the task.

    So theoretically, you could use an a!refreshVariable set to update when tp!owner changes from null to any value.  That will at least get a local variable to show that a user has accepted / viewed the task.

    Now, the trick is to go from there to starting a process.  I don't know if there's a means to fire it off from there.  a!startProcess, as far as I know, requires a user input of some kind.

    Can rules for scripted start nodes poll process variables including the task properties of specific nodes?  If so, you could have a secondary process thread flow to a startProcess smart service.

Reply
  • 0
    Certified Lead Developer

    From documentation:

    owner tp!owner Task owner.
    • When a task is assigned, the Task Owner property has a null value until the assigned user views the task or until a user in the assigned group accepts the task.

    So theoretically, you could use an a!refreshVariable set to update when tp!owner changes from null to any value.  That will at least get a local variable to show that a user has accepted / viewed the task.

    Now, the trick is to go from there to starting a process.  I don't know if there's a means to fire it off from there.  a!startProcess, as far as I know, requires a user input of some kind.

    Can rules for scripted start nodes poll process variables including the task properties of specific nodes?  If so, you could have a secondary process thread flow to a startProcess smart service.

Children
No Data