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 of over 48,000 articles and solutions.

Current Customers and Partners

Log in for full access

Log In
Close

Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.