BpmnUserTask additional fields upon creation

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • a.slyzhko
    Member
    • Oct 2023
    • 96

    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?
  • yuri
    Member
    • Mar 2014
    • 8552

    #2
    Hi,

    I think there's no any direct way to set User Task fields currently.
    If you find EspoCRM good, we would greatly appreciate if you could give the project a star on GitHub. We believe our work truly deserves more recognition. Thanks.

    Comment

    • yuri
      Member
      • Mar 2014
      • 8552

      #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.
      If you find EspoCRM good, we would greatly appreciate if you could give the project a star on GitHub. We believe our work truly deserves more recognition. Thanks.

      Comment

      • a.slyzhko
        Member
        • Oct 2023
        • 96

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

        Comment

        • yuri
          Member
          • Mar 2014
          • 8552

          #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.
          If you find EspoCRM good, we would greatly appreciate if you could give the project a star on GitHub. We believe our work truly deserves more recognition. Thanks.

          Comment

          Working...