Announcement

Collapse
No announcement yet.

BpmnUserTask additional fields upon creation

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • BpmnUserTask additional fields upon creation

    Hi there!
    ​BpmnUserTask can be customized via EntityManager and we use this feature. However, when building FlowCharts there is no easy way to set custom fields upon creation of BpmnUserTask. As a workaround we use approach from screenshot (use delay to be sure BpmnUserTask is created and saved to DB before updating custom fields).
    Is there any other simpler/elegant way of setting custom fields? Maybe plan to add this in future Advanced Pack updates?

  • #2
    Hi,

    I think there's no any direct way to set User Task fields currently.

    Comment


    • #3
      Note that you are not limited to use the User Task entity type. You can utilize any other entity type. E.g. the Task. The difference is that the flow won't be suspended on the Activity. You will need to use a Gateway to check whether the Task is resolved.

      Comment


      • #4
        In this case we missing assignment and placeholders features and things are getting even move complicated

        Comment


        • #5
          The assignment can be handled with the Apply Assignment Rule action. It's the same logic internally. The placeholders functionality is missing but it can be replaced with a formula script. One may find reasonable to use different entity types for different business processes. Another possible advantage, to have the record displayed in the calendar.

          Another solution would be to use a boundary event to set needed custom fields (the way you did it) and only after that apply the assignment rule. This will ensure that the User Task is fully ready at the time the user receives it.
          Last edited by yuri; 09-25-2024, 07:37 PM.

          Comment

          Working...
          X