Uploaded image for project: 'jBPM'
  1. jBPM
  2. JBPM-9306

Human Task Reassignment fails when the user/group is not listed as Organizational Entity

XMLWordPrintable

    • NEW
    • NEW
    • Hide

      1. Create a task with a user / group reassignment

      2. Make sure the user is not listed in the Organizational Entity (Fresh DB or a user that has never been engaged before for other HT)

      3. Trigger the HT

      Show
      1. Create a task with a user / group reassignment 2. Make sure the user is not listed in the Organizational Entity (Fresh DB or a user that has never been engaged before for other HT) 3. Trigger the HT

      In a Human Task, I defined a reassignment logic like in the following picture:


      When I launch this task at runtime I get an exception:
       
      Caused by: org.h2.jdbc.JdbcSQLException: Referential integrity constraint violation: "FKSQRMPVEHLC4QE9I0KM22NMKJL: PUBLIC.REASSIGNMENT_POTENTIALOWNERS FOREIGN KEY(ENTITY_ID) REFERENCES PUBLIC.ORGANIZATIONALENTITY(ID) ('rachid')"; SQL statement:
      insert into Reassignment_potentialOwners (task_id, entity_id) values (?, ?) [23506-193]
       
      I got that the problem is that the user "rachid" is not listed in the table ORGANIZATIONALENTITY.
       
      In fact, if before reaching this task, I assign another task to "rachid" the entity "rachid" is loaded in the table ORGANIZATIONALENTITY, and I can finally trigger the task that potentially can be reassigned to "rachid".
       
       

            ftirados Francisco Javier Tirado Sarti
            dmarrazz@redhat.com Donato Marrazzo
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: