<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<html>
<body link="#355491" alink="#4262a1" vlink="#355491" style="background: #e2e2e2; margin: 0; padding: 20px;">
<div>
        <table cellpadding="0" bgcolor="#FFFFFF" border="0" cellspacing="0" style="border: 1px solid #dadada; margin-bottom: 30px; width: 100%; -moz-border-radius: 6px; -webkit-border-radius: 6px;">
                <tbody>
                        <tr>
                                <td>
                                        <table border="0" cellpadding="0" cellspacing="0" bgcolor="#FFFFFF" style="border: solid 2px #ccc; background: #dadada; width: 100%; -moz-border-radius: 6px; -webkit-border-radius: 6px;">
                                                <tbody>
                                                        <tr>
                                                                <td bgcolor="#000000" valign="middle" height="58px" style="border-bottom: 1px solid #ccc; padding: 20px; -moz-border-radius-topleft: 3px; -moz-border-radius-topright: 3px; -webkit-border-top-right-radius: 5px; -webkit-border-top-left-radius: 5px;">
                                                                        <h1 style="color: #333333; font: bold 22px Arial, Helvetica, sans-serif; margin: 0; display: block !important;">
                                                                        <!-- To have a header image/logo replace the name below with your img tag -->
                                                                        <!-- Email clients will render the images when the message is read so any image -->
                                                                        <!-- must be made available on a public server, so that all recipients can load the image. -->
                                                                        <a href="https://community.jboss.org/index.jspa" style="text-decoration: none; color: #E1E1E1">JBoss Community</a></h1>
                                                                </td>
                                                        </tr>
                                                        <tr>
                                                                <td bgcolor="#FFFFFF" style="font: normal 12px Arial, Helvetica, sans-serif; color:#333333; padding: 20px; -moz-border-radius-bottomleft: 4px; -moz-border-radius-bottomright: 4px; -webkit-border-bottom-right-radius: 5px; -webkit-border-bottom-left-radius: 5px;"><h3 style="margin: 10px 0 5px; font-size: 17px; font-weight: normal;">
Problem with forms in the soa-p 5.3.1 integration with jbpm 5
</h3>
<span style="margin-bottom: 10px;">
created by <a href="https://community.jboss.org/people/jmiguel77">Jose Miguel Loor</a> in <i>jBPM</i> - <a href="https://community.jboss.org/message/821109#821109">View the full discussion</a>
</span>
<hr style="margin: 20px 0; border: none; background-color: #dadada; height: 1px;">
<div class="jive-rendered-content"><p>Hi</p><p style="min-height: 8pt; height: 8pt; padding: 0px;"> </p><p>I am testing the integration of jbpm 5 with jboss soa platform. So far, i downloaded soa-p-5.3.1.GA.zip and soa-p-5.3.1.GA-jbpm5.zip. Also, according with the instructions in the readme file of the soa-p jbpm 5 file, i downloaded the brms-p-5.3.1.GA-deployable.zip and deployed its content in the soa-p platform server </p><p style="min-height: 8pt; height: 8pt; padding: 0px;"> </p><p>I am running the soa platform against an oracle database; so i modified all files to use that database.</p><p style="min-height: 8pt; height: 8pt; padding: 0px;"> </p><p>Also, i created a esb project and deployed to the server. This esb project has a .bpmn file that represents my process definition; i can interact with this process via the esb project, that means, i can start a new instance of the process using the esb command available for that operation</p><p style="min-height: 8pt; height: 8pt; padding: 0px;"> </p><p>But i cannot access the form that i defined for a human task inside the process. It is giving me this problem:</p><p style="min-height: 8pt; height: 8pt; padding: 0px;"> </p><p>freemarker.core.InvalidReferenceException: Expression revRequestId is undefined on line 15, column 34 in LoanRevission.</p><p> freemarker.core.TemplateObject.assertNonNull(TemplateObject.java:124)</p><p> freemarker.core.Expression.getStringValue(Expression.java:118)</p><p> freemarker.core.Expression.getStringValue(Expression.java:93)</p><p> freemarker.core.DollarVariable.accept(DollarVariable.java:76)</p><p> freemarker.core.Environment.visit(Environment.java:209)</p><p> freemarker.core.MixedContent.accept(MixedContent.java:92)</p><p> freemarker.core.Environment.visit(Environment.java:209)</p><p> freemarker.core.Environment.process(Environment.java:189)</p><p> freemarker.template.Template.process(Template.java:237)</p><p> org.jbpm.integration.console.forms.AbstractFormDispatcher.processTemplate(AbstractFormDispatcher.java:128)</p><p> org.jbpm.integration.console.forms.TaskFormDispatcher.provideForm(TaskFormDispatcher.java:109)</p><p> org.jbpm.integration.console.forms.FormDispatcherComposite.provideForm(FormDispatcherComposite.java:50)</p><p> org.jboss.bpm.console.server.FormProcessingFacade.provideForm(FormProcessingFacade.java:205)</p><p> org.jboss.bpm.console.server.FormProcessingFacade.renderTaskUI(FormProcessingFacade.java:127)</p><p> sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)</p><p> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)</p><p> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)</p><p> java.lang.reflect.Method.invoke(Method.java:601)</p><p> org.jboss.resteasy.core.MethodInjectorImpl.invoke(MethodInjectorImpl.java:140)</p><p> org.jboss.resteasy.core.ResourceMethod.invokeOnTarget(ResourceMethod.java:255)</p><p> org.jboss.resteasy.core.ResourceMethod.invoke(ResourceMethod.java:220)</p><p> org.jboss.resteasy.core.ResourceMethod.invoke(ResourceMethod.java:209)</p><p> org.jboss.resteasy.core.SynchronousDispatcher.getResponse(SynchronousDispatcher.java:519)</p><p> org.jboss.resteasy.core.SynchronousDispatcher.invoke(SynchronousDispatcher.java:496)</p><p> org.jboss.resteasy.core.SynchronousDispatcher.invoke(SynchronousDispatcher.java:119)</p><p> org.jboss.resteasy.plugins.server.servlet.ServletContainerDispatcher.service(ServletContainerDispatcher.java:208)</p><p> org.jboss.resteasy.plugins.server.servlet.HttpServletDispatcher.service(HttpServletDispatcher.java:55)</p><p> org.jboss.resteasy.plugins.server.servlet.HttpServletDispatcher.service(HttpServletDispatcher.java:50)</p><p> javax.servlet.http.HttpServlet.service(HttpServlet.java:717)</p><p> org.jboss.bpm.console.server.util.GWTJsonFilter.doFilter(GWTJsonFilter.java:59)</p><p> org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)</p><p style="min-height: 8pt; height: 8pt; padding: 0px;"> </p><p>But the variable in question (revRequestId) IS DEFINED in the bpmn file, and assigned to the task.</p><p style="min-height: 8pt; height: 8pt; padding: 0px;"> </p><p>Another thing that i find weird is that, as i mentioned before, i can start instances of the process via the esb; but those instances does not show in the business-central console, or when i access the REST api of the business-central-server; i know that these instances exists, because i can see the tasks that are create for a user, and these tasks has an instance id associated with them; but the instances does not appear in the console or via the REST api, why ??</p><p style="min-height: 8pt; height: 8pt; padding: 0px;"> </p><p>The other problem i am facing is that, i created a form to start the process, to test if it could be ran without the esb, but when i used this form to start an instance i get this error:</p><p style="min-height: 8pt; height: 8pt; padding: 0px;"> </p><p>org.drools.WorkItemHandlerNotFoundException: Could not find work item handler for JBossESB</p><p> org.drools.persistence.jpa.processinstance.JPAWorkItemManager.throwWorkItemNotFoundException(JPAWorkItemManager.java:62)</p><p> org.drools.persistence.jpa.processinstance.JPAWorkItemManager.internalExecuteWorkItem(JPAWorkItemManager.java:57)</p><p> org.jbpm.workflow.instance.node.WorkItemNodeInstance.internalTrigger(WorkItemNodeInstance.java:107)</p><p> org.jbpm.workflow.instance.impl.NodeInstanceImpl.trigger(NodeInstanceImpl.java:122)</p><p> org.jbpm.workflow.instance.impl.NodeInstanceImpl.triggerNodeInstance(NodeInstanceImpl.java:210)</p><p> org.jbpm.workflow.instance.impl.NodeInstanceImpl.triggerCompleted(NodeInstanceImpl.java:169)</p><p> org.jbpm.workflow.instance.node.ActionNodeInstance.triggerCompleted(ActionNodeInstance.java:55)</p><p> org.jbpm.workflow.instance.node.ActionNodeInstance.internalTrigger(ActionNodeInstance.java:51)</p><p> org.jbpm.workflow.instance.impl.NodeInstanceImpl.trigger(NodeInstanceImpl.java:122)</p><p> org.jbpm.workflow.instance.impl.NodeInstanceImpl.triggerNodeInstance(NodeInstanceImpl.java:210)</p><p> org.jbpm.workflow.instance.impl.NodeInstanceImpl.triggerCompleted(NodeInstanceImpl.java:169)</p><p> org.jbpm.workflow.instance.node.StartNodeInstance.triggerCompleted(StartNodeInstance.java:49)</p><p> org.jbpm.workflow.instance.node.StartNodeInstance.internalTrigger(StartNodeInstance.java:41)</p><p> org.jbpm.workflow.instance.impl.NodeInstanceImpl.trigger(NodeInstanceImpl.java:122)</p><p> org.jbpm.ruleflow.instance.RuleFlowProcessInstance.internalStart(RuleFlowProcessInstance.java:35)</p><p> org.jbpm.process.instance.impl.ProcessInstanceImpl.start(ProcessInstanceImpl.java:188)</p><p> org.jbpm.workflow.instance.impl.WorkflowProcessInstanceImpl.start(WorkflowProcessInstanceImpl.java:305)</p><p> org.jbpm.process.instance.ProcessRuntimeImpl.startProcessInstance(ProcessRuntimeImpl.java:169)</p><p> org.jbpm.process.instance.ProcessRuntimeImpl.startProcess(ProcessRuntimeImpl.java:139)</p><p> org.drools.common.AbstractWorkingMemory.startProcess(AbstractWorkingMemory.java:1082)</p><p> org.drools.impl.StatefulKnowledgeSessionImpl.startProcess(StatefulKnowledgeSessionImpl.java:318)</p><p> org.drools.command.runtime.process.StartProcessCommand.execute(StartProcessCommand.java:119)</p><p> org.drools.command.runtime.process.StartProcessCommand.execute(StartProcessCommand.java:38)</p><p> org.drools.command.impl.DefaultCommandService.execute(DefaultCommandService.java:36)</p><p> org.drools.persistence.SingleSessionCommandService.execute(SingleSessionCommandService.java:360)</p><p> org.drools.command.impl.CommandBasedStatefulKnowledgeSession.startProcess(CommandBasedStatefulKnowledgeSession.java:223)</p><p> org.jbpm.integration.console.CommandDelegate.startProcess(CommandDelegate.java:120)</p><p> org.jbpm.integration.console.ProcessManagement.newInstance(ProcessManagement.java:88)</p><p> org.jboss.bpm.console.server.FormProcessingFacade.startProcessWithUI(FormProcessingFacade.java:197)</p><p> sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)</p><p> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)</p><p> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)</p><p> java.lang.reflect.Method.invoke(Method.java:601)</p><p> org.jboss.resteasy.core.MethodInjectorImpl.invoke(MethodInjectorImpl.java:140)</p><p> org.jboss.resteasy.core.ResourceMethod.invokeOnTarget(ResourceMethod.java:255)</p><p> org.jboss.resteasy.core.ResourceMethod.invoke(ResourceMethod.java:220)</p><p> org.jboss.resteasy.core.ResourceMethod.invoke(ResourceMethod.java:209)</p><p> org.jboss.resteasy.core.SynchronousDispatcher.getResponse(SynchronousDispatcher.java:519)</p><p> org.jboss.resteasy.core.SynchronousDispatcher.invoke(SynchronousDispatcher.java:496)</p><p> org.jboss.resteasy.core.SynchronousDispatcher.invoke(SynchronousDispatcher.java:119)</p><p> org.jboss.resteasy.plugins.server.servlet.ServletContainerDispatcher.service(ServletContainerDispatcher.java:208)</p><p> org.jboss.resteasy.plugins.server.servlet.HttpServletDispatcher.service(HttpServletDispatcher.java:55)</p><p> org.jboss.resteasy.plugins.server.servlet.HttpServletDispatcher.service(HttpServletDispatcher.java:50)</p><p> javax.servlet.http.HttpServlet.service(HttpServlet.java:717)</p><p> org.jboss.bpm.console.server.util.GWTJsonFilter.doFilter(GWTJsonFilter.java:59)</p><p> org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)</p><p style="min-height: 8pt; height: 8pt; padding: 0px;"> </p><p>But, again, i can start a process instance via the deployed esb project; what is wrong with this</p><p style="min-height: 8pt; height: 8pt; padding: 0px;"> </p><p>thanks a lot</p></div>
<div style="background-color: #f4f4f4; padding: 10px; margin-top: 20px;">
<p style="margin: 0;">Reply to this message by <a href="https://community.jboss.org/message/821109#821109">going to Community</a></p>
        <p style="margin: 0;">Start a new discussion in jBPM at <a href="https://community.jboss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2034">Community</a></p>
</div></td>
</tr>
</tbody>
</table>
</td>
</tr>
</tbody>
</table>
</div>
</body>
</html>