How to pass system property dynamically in org.kie.server.client.integration.RemoteBusinessRuleTaskHandler?
Issue
- How to pass system property dynamically in org.kie.server.client.integration.emoteBusinessRuleTaskHandler() work item handler
- Configured system properties in EAP and tried to use them directly in the work item handler but unable to deploy.
cause: Nullpointer or function not found : $SYSTEM_PROPERTY
2019-10-13 23:46:02,006 WARN [org.jbpm.kie.services.impl.KModuleDeploymentService] (default task-23) Unexpected error while deploying unit $PROJECTNAME_1.0.0: java.lang.RuntimeException: java.lang.RuntimeException: Exception while initializing runtime manager $PROJECTNAME_1.0.0
at org.jbpm.kie.services.impl.AbstractDeploymentService.commonDeploy(AbstractDeploymentService.java:171)
at org.jbpm.kie.services.impl.KModuleDeploymentService.deploy(KModuleDeploymentService.java:203)
...
Caused by: java.lang.RuntimeException: Exception while initializing runtime manager $PROJECTNAME_1.0.0
at org.jbpm.runtime.manager.impl.SingletonRuntimeManager.init(SingletonRuntimeManager.java:126)
at org.jbpm.runtime.manager.impl.RuntimeManagerFactoryImpl.newSingletonRuntimeManager(RuntimeManagerFactoryImpl.java:64)
at org.jbpm.kie.services.impl.AbstractDeploymentService.commonDeploy(AbstractDeploymentService.java:136)
... 59 more
Caused by: [Error: null pointer or function not found: $SYSTEM_PROPERTY]
[Near : {... nessRuleTaskHandler($SYSTEM_PROPERTY,"rhpamAdmin"," ....}]
Environment
- Red Hat Process Automation Manager
- 7.x
Subscriber exclusive content
A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.