Project

General

Profile

Actions

Defect #3428

closed

Approval workflows don't support approval of roles on Account

Added by Vladimír Kotýnek 9 months ago. Updated 7 months ago.

Status:
Closed
Priority:
Urgent
Assignee:
Peter Štrunc
Target version:
Start date:
08/17/2023
Due date:
% Done:

100%

Estimated time:
Affected versions:
Owner:

Description

Affected workflows:
  • extrasApproveRoleByContractManager.bpmn20.xml
  • extrasApproveRoleByManagerAndGuarantees.bpmn20.xml
  • extrasApproveRoleByManagerScriptAndGuarantee.bpmn20.xml
How to reproduce:
  1. set the workflow as approval workflow for some criticality
  2. request for role with this criticality - click add, select Account tab and select a specific account and click "Set"
  3. Click "Submit a request"
  4. This error appears:
    2023-08-17 13:13:12.679  WARN 1734737703 --- [http-nio-127.0.0.1-8080-exec-8] o.a.e.i.b.b.ScriptTaskActivityBehavior.execute : Exception while executing scripttask8 : problem evaluating script: javax.scri
    pt.ScriptException: java.lang.NullPointerException: Cannot invoke method setState() on null object
    2023-08-17 13:13:12.699  WARN 1734737723 --- [http-nio-127.0.0.1-8080-exec-8] o.a.e.i.b.b.ScriptTaskActivityBehavior.execute : Exception while executing scripttask8 : problem evaluating script: javax.scri
    pt.ScriptException: java.lang.NullPointerException: Cannot invoke method setState() on null object
    2023-08-17 13:13:12.699 ERROR 1734737723 --- [http-nio-127.0.0.1-8080-exec-8] o.a.e.i.interceptor.CommandContext.exception : masked exception in command context. for root cause, see below as it will be re
    thrown later.
    org.activiti.engine.ActivitiException: problem evaluating script: javax.script.ScriptException: java.lang.NullPointerException: Cannot invoke method setState() on null object
            at org.activiti.engine.impl.scripting.ScriptingEngines.evaluate(ScriptingEngines.java:89)
    
    
Actions #1

Updated by Peter Štrunc 9 months ago

  • Assignee set to Peter Štrunc
Actions #2

Updated by Peter Štrunc 9 months ago

  • Status changed from New to Resolved
  • Target version set to 4.2.1
  • % Done changed from 0 to 100

Fixed, and tested on a project. Merged.

Actions #3

Updated by Peter Štrunc 7 months ago

  • Status changed from Resolved to Closed
Actions

Also available in: Atom PDF