Unknown class error in a mvel Script Task in RHPAM

Solution Unverified - Updated -

Issue

  • I get the following error when I use a Script Task with Script language = "mvel"
2018-10-22 15:30:20,963 [Time-limited test] ERROR Unable to build KieBaseModel:KBase-test
[-1,-1]: Process 'org.jbpm.test.functional.task.ScriptTaskMvelWithDep' [org.jbpm.test.functional.task.ScriptTaskMvelWithDep]: Node 'scriptMvel' [2] Action has invalid action: [Error: unknown class or illegal statement: org.mvel2.ParserContext@6e87f062]
[Near : {... Package.TestPojo p = new defaultPackage.TestPojo() ....}]
                                 ^
[Line: 1, Column: 28].
[-1,-1]: Process 'testprocessa' [org.jbpm.test.functional.task.ScriptTaskMvelImportWithDep]: Node 'sayhello' [1] Action has invalid action: [Error: class not found: import defaultPackage.MyUtil;

MyUtil.myStaticMethod();
]
[Near : {... import defaultPackage.MyUtil; ....}]
                    ^
[Line: 1, Column: 8].

Environment

  • Red Hat Process Automation Manager
    • 7.0.1

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content