JBoss Community

Re: How to remove the process instance when the abort fails

created by Eduard Rameder in jBPM - View the full discussion

Hi,

 

We faced the exact same problem. It seams the process engine sends an abort signal to each workItem (actually the fitting workItemHandler). Which is fine.

BUT: standard implentation of the HumanTaskWorkItemHandler would fail if you send abort ("exit"-command) to a completed task.

Fix:

Allow the exit-command on an already completed task and do nothing with it.

 

operations-dsl.mvel:

...

} ],
Operation.Exit
    : [ new OperationCommand().{
            status = [ Status.Created, Status.Ready, Status.Reserved, Status.InProgress, Status.Suspended ],
            allowed = [ Allowed.BusinessAdministrator ],
            newStatus = Status.Exited
        },new OperationCommand().{
            status = [ Status.Completed ],
            allowed = [ Allowed.BusinessAdministrator ],
            newStatus = Status.Completed
        } ]
]

...

 

regards from Vienna

Edi

Reply to this message by going to Community

Start a new discussion in jBPM at Community