2 Replies Latest reply on Feb 6, 2015 10:12 AM by . .

    Re unable to compile from IDE but can compile from  KIE work bench (6.0.2-GA)

    . . Newbie

      Hi-

      Error in compiling from IDE but it compiles and builds from KIE Workbench - same code


      there's a clue it appears:



      Caused by: java.lang.ClassCastException: com.crl.rol.rolnewbpm.Process_com$u46$crl$u46$rol$u46$rolnewbpm$u46$NotificationSubProcess1914829158ReturnValueEvaluator2Invoker cannot be cast to org.jbpm.process.instance.impl.ReturnValueEvaluator



      I get the following error.  It could be something subtle.  If you or anyone is able to help, it’s good. 

       

      I was able to build and compile many times before from IDE as well as from KIE workbench,



      Regards,

      Sai


       

      [DEBUG] -- end configuration --

      line 2:27 mismatched character '<EOF>' expecting '\n'

      • org.drools.core.RuntimeDroolsException: Unable to wire up JavaDialect

      at org.drools.core.rule.JavaDialectRuntimeData.onBeforeExecute(JavaDialectRuntimeData.java:263)

      at org.drools.core.rule.DialectRuntimeRegistry.onBeforeExecute(DialectRuntimeRegistry.java:135)

      at org.jbpm.compiler.ProcessBuilderImpl.buildProcess(ProcessBuilderImpl.java:192)

      at org.jbpm.compiler.ProcessBuilderImpl.addProcessFromXml(ProcessBuilderImpl.java:281)

      at org.drools.compiler.compiler.PackageBuilder.addProcessFromXml(PackageBuilder.java:700)

      at org.drools.compiler.compiler.CompositeKnowledgeBuilderImpl.buildResources(CompositeKnowledgeBuilderImpl.java:149)

      at org.drools.compiler.compiler.CompositeKnowledgeBuilderImpl.build(CompositeKnowledgeBuilderImpl.java:86)

      at org.drools.compiler.kie.builder.impl.AbstractKieModule.buildKnowledgePackages(AbstractKieModule.java:219)

      at org.drools.compiler.kie.builder.impl.AbstractKieProject.verify(AbstractKieProject.java:43)

      at org.drools.compiler.kie.builder.impl.AbstractKieProject.verify(AbstractKieProject.java:37)

      at org.kie.maven.plugin.BuildMojo.execute(BuildMojo.java:126)

      at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:101)

      at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:209)

      at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:153)

      at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:145)

      at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:84)

      at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:59)

      at org.apache.maven.lifecycle.internal.LifecycleStarter.singleThreadedBuild(LifecycleStarter.java:183)

      at org.apache.maven.lifecycle.internal.LifecycleStarter.execute(LifecycleStarter.java:161)

      at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:320)

      at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:156)

      at org.apache.maven.cli.MavenCli.execute(MavenCli.java:537)

      at org.apache.maven.cli.MavenCli.doMain(MavenCli.java:196)

      at org.apache.maven.cli.MavenCli.main(MavenCli.java:141)

      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

      at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)

      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)

      at java.lang.reflect.Method.invoke(Method.java:606)

      at org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced(Launcher.java:290)

      at org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.java:230)

      at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode(Launcher.java:409)

      at org.codehaus.plexus.classworlds.launcher.Launcher.main(Launcher.java:352)

      Caused by: java.lang.ClassCastException: com.crl.rol.rolnewbpm.Process_com$u46$crl$u46$rol$u46$rolnewbpm$u46$NotificationSubProcess1914829158ReturnValueEvaluator2Invoker cannot be cast to org.jbpm.process.instance.impl.ReturnValueEvaluator

      at org.jbpm.process.instance.impl.ReturnValueConstraintEvaluator.wire(ReturnValueConstraintEvaluator.java:111)

      at org.drools.core.rule.JavaDialectRuntimeData.wire(JavaDialectRuntimeData.java:499)

      at org.drools.core.rule.JavaDialectRuntimeData.wire(JavaDialectRuntimeData.java:487)

      at org.drools.core.rule.JavaDialectRuntimeData.wireAll(JavaDialectRuntimeData.java:287)

      at org.drools.core.rule.JavaDialectRuntimeData.onBeforeExecute(JavaDialectRuntimeData.java:258)

      ... 31 more

      • org.drools.core.RuntimeDroolsException: Unable to wire up JavaDialect

      at org.drools.core.rule.JavaDialectRuntimeData.onBeforeExecute(JavaDialectRuntimeData.java:263)

      at org.drools.core.rule.DialectRuntimeRegistry.onBeforeExecute(DialectRuntimeRegistry.java:135)

      at org.jbpm.compiler.ProcessBuilderImpl.buildProcess(ProcessBuilderImpl.java:192)

      at org.jbpm.compiler.ProcessBuilderImpl.addProcessFromXml(ProcessBuilderImpl.java:281)

      at org.drools.compiler.compiler.PackageBuilder.addProcessFromXml(PackageBuilder.java:700)

      at org.drools.compiler.compiler.CompositeKnowledgeBuilderImpl.buildResources(CompositeKnowledgeBuilderImpl.java:149)

      at org.drools.compiler.compiler.CompositeKnowledgeBuilderImpl.build(CompositeKnowledgeBuilderImpl.java:86)

      at org.drools.compiler.kie.builder.impl.AbstractKieModule.buildKnowledgePackages(AbstractKieModule.java:219)

      at org.drools.compiler.kie.builder.impl.AbstractKieProject.verify(AbstractKieProject.java:43)

      at org.drools.compiler.kie.builder.impl.AbstractKieProject.verify(AbstractKieProject.java:37)

      at org.kie.maven.plugin.BuildMojo.execute(BuildMojo.java:126)

      at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:101)

      at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:209)

      at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:153)

      at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:145)

      at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:84)

      at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:59)

      at org.apache.maven.lifecycle.internal.LifecycleStarter.singleThreadedBuild(LifecycleStarter.java:183)

      at org.apache.maven.lifecycle.internal.LifecycleStarter.execute(LifecycleStarter.java:161)

      at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:320)

      at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:156)

      at org.apache.maven.cli.MavenCli.execute(MavenCli.java:537)

      at org.apache.maven.cli.MavenCli.doMain(MavenCli.java:196)

      at org.apache.maven.cli.MavenCli.main(MavenCli.java:141)

      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

      at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)

      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)

      at java.lang.reflect.Method.invoke(Method.java:606)

      at org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced(Launcher.java:290)

      at org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.java:230)

      at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode(Launcher.java:409)

      at org.codehaus.plexus.classworlds.launcher.Launcher.main(Launcher.java:352)

      Caused by: java.lang.ClassCastException: com.crl.rol.rolnewbpm.Process_com$u46$crl$u46$rol$u46$rolnewbpm$u46$NotificationSubProcess1914829158ReturnValueEvaluator2Invoker cannot be cast to org.jbpm.process.instance.impl.ReturnValueEvaluator

      at org.jbpm.process.instance.impl.ReturnValueConstraintEvaluator.wire(ReturnValueConstraintEvaluator.java:111)

      at org.drools.core.rule.JavaDialectRuntimeData.wire(JavaDialectRuntimeData.java:499)

      at org.drools.core.rule.JavaDialectRuntimeData.wire(JavaDialectRuntimeData.java:487)

      at org.drools.core.rule.JavaDialectRuntimeData.wireAll(JavaDialectRuntimeData.java:287)

      at org.drools.core.rule.JavaDialectRuntimeData.onBeforeExecute(JavaDialectRuntimeData.java:258)

      ... 31 more

      • org.drools.core.RuntimeDroolsException: Unable to wire up JavaDialect

      at org.drools.core.rule.JavaDialectRuntimeData.onBeforeExecute(JavaDialectRuntimeData.java:263)

      at org.drools.core.rule.DialectRuntimeRegistry.onBeforeExecute(DialectRuntimeRegistry.java:135)

      at org.jbpm.compiler.ProcessBuilderImpl.buildProcess(ProcessBuilderImpl.java:192)

      at org.jbpm.compiler.ProcessBuilderImpl.addProcessFromXml(ProcessBuilderImpl.java:281)

      at org.drools.compiler.compiler.PackageBuilder.addProcessFromXml(PackageBuilder.java:700)

      at org.drools.compiler.compiler.CompositeKnowledgeBuilderImpl.buildResources(CompositeKnowledgeBuilderImpl.java:149)

      at org.drools.compiler.compiler.CompositeKnowledgeBuilderImpl.build(CompositeKnowledgeBuilderImpl.java:86)

      at org.drools.compiler.kie.builder.impl.AbstractKieModule.buildKnowledgePackages(AbstractKieModule.java:219)

      at org.drools.compiler.kie.builder.impl.AbstractKieProject.verify(AbstractKieProject.java:43)

      at org.drools.compiler.kie.builder.impl.AbstractKieProject.verify(AbstractKieProject.java:37)

      at org.kie.maven.plugin.BuildMojo.execute(BuildMojo.java:126)

      at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:101)

      at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:209)

      at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:153)

      at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:145)

      at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:84)

      at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:59)

      at org.apache.maven.lifecycle.internal.LifecycleStarter.singleThreadedBuild(LifecycleStarter.java:183)

      at org.apache.maven.lifecycle.internal.LifecycleStarter.execute(LifecycleStarter.java:161)

      at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:320)

      at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:156)

      at org.apache.maven.cli.MavenCli.execute(MavenCli.java:537)

      at org.apache.maven.cli.MavenCli.doMain(MavenCli.java:196)

      at org.apache.maven.cli.MavenCli.main(MavenCli.java:141)

      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

      at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)

      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)

      at java.lang.reflect.Method.invoke(Method.java:606)

      at org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced(Launcher.java:290)

      at org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.java:230)

      at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode(Launcher.java:409)

      at org.codehaus.plexus.classworlds.launcher.Launcher.main(Launcher.java:352)

      Caused by: java.lang.ClassCastException: com.crl.rol.rolnewbpm.Process_com$u46$crl$u46$rol$u46$rolnewbpm$u46$NotificationSubProcess1914829158ReturnValueEvaluator2Invoker cannot be cast to org.jbpm.process.instance.impl.ReturnValueEvaluator

      at org.jbpm.process.instance.impl.ReturnValueConstraintEvaluator.wire(ReturnValueConstraintEvaluator.java:111)

      at org.drools.core.rule.JavaDialectRuntimeData.wire(JavaDialectRuntimeData.java:499)

      at org.drools.core.rule.JavaDialectRuntimeData.wire(JavaDialectRuntimeData.java:487)

      at org.drools.core.rule.JavaDialectRuntimeData.wireAll(JavaDialectRuntimeData.java:287)

      at org.drools.core.rule.JavaDialectRuntimeData.onBeforeExecute(JavaDialectRuntimeData.java:258)

      ... 31 more

      [ERROR] Message [id=1, level=ERROR, path=com/crl/rol/rolnewbpm/rol_new_bpm/NotificationSubProcess.bpmn2, line=-1, column=0

      text=unable to parse xml : Exception class org.drools.core.RuntimeDroolsException : Unable to wire up JavaDialect]

      [ERROR] Message [id=2, level=ERROR, path=null, line=-1, column=0

      text=Unable to wire compiled classes, probably related to compilation failures:Unable to wire up JavaDialect]

      [ERROR] Message [id=3, level=ERROR, path=com/crl/rol/rolnewbpm/rol_new_bpm/httestprocess.bpmn2, line=-1, column=0

      text=unable to parse xml : Exception class org.drools.core.RuntimeDroolsException : Unable to wire up JavaDialect]

      [ERROR] Message [id=4, level=ERROR, path=null, line=-1, column=0

      text=Unable to wire compiled classes, probably related to compilation failures:Unable to wire up JavaDialect]

      [ERROR] Message [id=5, level=ERROR, path=com/crl/rol/rolnewbpm/rol_new_bpm/ApprovalChildProcess.bpmn2, line=-1, column=0

      text=unable to parse xml : Exception class org.drools.core.RuntimeDroolsException : Unable to wire up JavaDialect]

       

       


      Regards,

      Sai



      Source - BPMN

      ----------------------------------

      <?xml version="1.0" encoding="UTF-8"?>

      <bpmn2:definitions xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:bpmn2="http://www.omg.org/spec/BPMN/20100524/MODEL" xmlns:bpmn20="http://www.omg.org/bpmn20" xmlns:bpmndi="http://www.omg.org/spec/BPMN/20100524/DI" xmlns:bpsim="http://www.bpsim.org/schemas/1.0" xmlns:dc="http://www.omg.org/spec/DD/20100524/DC" xmlns:di="http://www.omg.org/spec/DD/20100524/DI" xmlns:drools="http://www.jboss.org/drools" xmlns="http://www.jboss.org/drools" xsi:schemaLocation="http://www.omg.org/spec/BPMN/20100524/MODEL BPMN20.xsd http://www.jboss.org/drools drools.xsd http://www.bpsim.org/schemas/1.0 bpsim.xsd" id="_PpRL0JvLEeS4v9KTZKHTwQ" expressionLanguage="http://www.mvel.org/2.0" targetNamespace="http://www.omg.org/bpmn20" typeLanguage="http://www.java.com/javaTypes">

        <bpmn2:itemDefinition id="_resultOfEndpointItem" structureRef="Object"/>

        <bpmn2:itemDefinition id="_outputResultItem" structureRef="Object"/>

        <bpmn2:itemDefinition id="_nmItem" structureRef="String"/>

        <bpmn2:itemDefinition id="_subprResponseItem" structureRef="Object"/>

        <bpmn2:itemDefinition id="_reqCurCodeItem" structureRef="String"/>

        <bpmn2:itemDefinition id="__32EFD724-D74B-4FCC-9B63-B99F9803855B_ReadTimeoutInputXItem" structureRef="String"/>

        <bpmn2:itemDefinition id="__32EFD724-D74B-4FCC-9B63-B99F9803855B_UsernameInputXItem" structureRef="String"/>

        <bpmn2:itemDefinition id="__32EFD724-D74B-4FCC-9B63-B99F9803855B_UrlInputXItem" structureRef="String"/>

        <bpmn2:itemDefinition id="__32EFD724-D74B-4FCC-9B63-B99F9803855B_ConnectTimeoutInputXItem" structureRef="String"/>

        <bpmn2:itemDefinition id="__32EFD724-D74B-4FCC-9B63-B99F9803855B_MethodInputXItem" structureRef="String"/>

        <bpmn2:itemDefinition id="__32EFD724-D74B-4FCC-9B63-B99F9803855B_PasswordInputXItem" structureRef="String"/>

        <bpmn2:itemDefinition id="__32EFD724-D74B-4FCC-9B63-B99F9803855B_ResultOutputXItem" structureRef="java.lang.Object"/>

        <bpmn2:process id="rolnewbpm.NotificationSubProcess" drools:version="1.0" drools:packageName="com.crl.rol.rolnewbpm" drools:adHoc="false" name="NotificationSubProcess" isExecutable="true">

          <bpmn2:property id="resultOfEndpoint" itemSubjectRef="_resultOfEndpointItem"/>

          <bpmn2:property id="outputResult" itemSubjectRef="_outputResultItem"/>

          <bpmn2:property id="nm" itemSubjectRef="_nmItem"/>

          <bpmn2:property id="subprResponse" itemSubjectRef="_subprResponseItem"/>

          <bpmn2:property id="reqCurCode" itemSubjectRef="_reqCurCodeItem"/>

          <bpmn2:startEvent id="processStartEvent" drools:bgcolor="#9acd32" drools:selectable="true" name="start">

            <bpmn2:outgoing>bpmn20:_A2E06115-190C-472D-8071-7EF02BBBFF4F</bpmn2:outgoing>

          </bpmn2:startEvent>

          <bpmn2:task id="_32EFD724-D74B-4FCC-9B63-B99F9803855B" drools:selectable="true" drools:taskName="Rest" name="call hi-REST end-point for e-mail">

            <bpmn2:extensionElements>

              <drools:onExit-script scriptFormat="http://www.java.com/java">

                <drools:script>System.out.println(&quot;value of process variable from return value from REST- from the call to REST end-point is - &quot; + resultOfEndpoint);</drools:script>

              </drools:onExit-script>

              <drools:onExit-script scriptFormat="http://www.java.com/java">

                <drools:script>System.out.println(&quot;value of sib-proces output variable - from the call to REST end-point is - &quot; + subprResponse);</drools:script>

              </drools:onExit-script>

            </bpmn2:extensionElements>

            <bpmn2:incoming>bpmn20:_96968EF4-B8B1-4ADB-AFBF-1DE6BED8D3C2</bpmn2:incoming>

            <bpmn2:outgoing>bpmn20:_E2DBB41A-A148-44A7-B7EF-A0597A11276C</bpmn2:outgoing>

            <bpmn2:ioSpecification id="_PpUPIJvLEeS4v9KTZKHTwQ">

              <bpmn2:dataInput id="_32EFD724-D74B-4FCC-9B63-B99F9803855B_TaskNameInputX" name="TaskName"/>

              <bpmn2:dataInput id="_32EFD724-D74B-4FCC-9B63-B99F9803855B_ReadTimeoutInputX" drools:dtype="String" itemSubjectRef="__32EFD724-D74B-4FCC-9B63-B99F9803855B_ReadTimeoutInputXItem" name="ReadTimeout"/>

              <bpmn2:dataInput id="_32EFD724-D74B-4FCC-9B63-B99F9803855B_UsernameInputX" drools:dtype="String" itemSubjectRef="__32EFD724-D74B-4FCC-9B63-B99F9803855B_UsernameInputXItem" name="Username"/>

              <bpmn2:dataInput id="_32EFD724-D74B-4FCC-9B63-B99F9803855B_UrlInputX" drools:dtype="String" itemSubjectRef="__32EFD724-D74B-4FCC-9B63-B99F9803855B_UrlInputXItem" name="Url"/>

              <bpmn2:dataInput id="_32EFD724-D74B-4FCC-9B63-B99F9803855B_ConnectTimeoutInputX" drools:dtype="String" itemSubjectRef="__32EFD724-D74B-4FCC-9B63-B99F9803855B_ConnectTimeoutInputXItem" name="ConnectTimeout"/>

              <bpmn2:dataInput id="_32EFD724-D74B-4FCC-9B63-B99F9803855B_MethodInputX" drools:dtype="String" itemSubjectRef="__32EFD724-D74B-4FCC-9B63-B99F9803855B_MethodInputXItem" name="Method"/>

              <bpmn2:dataInput id="_32EFD724-D74B-4FCC-9B63-B99F9803855B_PasswordInputX" drools:dtype="String" itemSubjectRef="__32EFD724-D74B-4FCC-9B63-B99F9803855B_PasswordInputXItem" name="Password"/>

              <bpmn2:dataOutput id="_32EFD724-D74B-4FCC-9B63-B99F9803855B_ResultOutputX" drools:dtype="java.lang.Object" itemSubjectRef="__32EFD724-D74B-4FCC-9B63-B99F9803855B_ResultOutputXItem" name="Result"/>

              <bpmn2:inputSet id="_PpUPIZvLEeS4v9KTZKHTwQ">

                <bpmn2:dataInputRefs>_32EFD724-D74B-4FCC-9B63-B99F9803855B_ReadTimeoutInputX</bpmn2:dataInputRefs>

                <bpmn2:dataInputRefs>_32EFD724-D74B-4FCC-9B63-B99F9803855B_UsernameInputX</bpmn2:dataInputRefs>

                <bpmn2:dataInputRefs>_32EFD724-D74B-4FCC-9B63-B99F9803855B_UrlInputX</bpmn2:dataInputRefs>

                <bpmn2:dataInputRefs>_32EFD724-D74B-4FCC-9B63-B99F9803855B_ConnectTimeoutInputX</bpmn2:dataInputRefs>

                <bpmn2:dataInputRefs>_32EFD724-D74B-4FCC-9B63-B99F9803855B_MethodInputX</bpmn2:dataInputRefs>

                <bpmn2:dataInputRefs>_32EFD724-D74B-4FCC-9B63-B99F9803855B_PasswordInputX</bpmn2:dataInputRefs>

                <bpmn2:dataInputRefs>_32EFD724-D74B-4FCC-9B63-B99F9803855B_TaskNameInputX</bpmn2:dataInputRefs>

              </bpmn2:inputSet>

              <bpmn2:outputSet id="_PpUPIpvLEeS4v9KTZKHTwQ">

                <bpmn2:dataOutputRefs>_32EFD724-D74B-4FCC-9B63-B99F9803855B_ResultOutputX</bpmn2:dataOutputRefs>

              </bpmn2:outputSet>

            </bpmn2:ioSpecification>

            <bpmn2:dataInputAssociation id="_PpUPI5vLEeS4v9KTZKHTwQ">

              <bpmn2:targetRef>_32EFD724-D74B-4FCC-9B63-B99F9803855B_TaskNameInputX</bpmn2:targetRef>

              <bpmn2:assignment id="_PpZHoJvLEeS4v9KTZKHTwQ">

                <bpmn2:from xsi:type="bpmn2:tFormalExpression" id="_PpZHoZvLEeS4v9KTZKHTwQ">Rest</bpmn2:from>

                <bpmn2:to xsi:type="bpmn2:tFormalExpression" id="_PpZHopvLEeS4v9KTZKHTwQ">_32EFD724-D74B-4FCC-9B63-B99F9803855B_TaskNameInputX</bpmn2:to>

              </bpmn2:assignment>

            </bpmn2:dataInputAssociation>

            <bpmn2:dataInputAssociation id="_PpZHo5vLEeS4v9KTZKHTwQ">

              <bpmn2:targetRef>_32EFD724-D74B-4FCC-9B63-B99F9803855B_ReadTimeoutInputX</bpmn2:targetRef>

              <bpmn2:assignment id="_PpZHpJvLEeS4v9KTZKHTwQ">

                <bpmn2:from xsi:type="bpmn2:tFormalExpression" id="_PpZHpZvLEeS4v9KTZKHTwQ"><![CDATA[50000]]></bpmn2:from>

                <bpmn2:to xsi:type="bpmn2:tFormalExpression" id="_PpZHppvLEeS4v9KTZKHTwQ">_32EFD724-D74B-4FCC-9B63-B99F9803855B_ReadTimeoutInputX</bpmn2:to>

              </bpmn2:assignment>

            </bpmn2:dataInputAssociation>

            <bpmn2:dataInputAssociation id="_PpZHp5vLEeS4v9KTZKHTwQ">

              <bpmn2:targetRef>_32EFD724-D74B-4FCC-9B63-B99F9803855B_ConnectTimeoutInputX</bpmn2:targetRef>

              <bpmn2:assignment id="_PpZHqJvLEeS4v9KTZKHTwQ">

                <bpmn2:from xsi:type="bpmn2:tFormalExpression" id="_PpZHqZvLEeS4v9KTZKHTwQ"><![CDATA[50000]]></bpmn2:from>

                <bpmn2:to xsi:type="bpmn2:tFormalExpression" id="_PpZHqpvLEeS4v9KTZKHTwQ">_32EFD724-D74B-4FCC-9B63-B99F9803855B_ConnectTimeoutInputX</bpmn2:to>

              </bpmn2:assignment>

            </bpmn2:dataInputAssociation>

            <bpmn2:dataInputAssociation id="_PpZHq5vLEeS4v9KTZKHTwQ">

              <bpmn2:targetRef>_32EFD724-D74B-4FCC-9B63-B99F9803855B_MethodInputX</bpmn2:targetRef>

              <bpmn2:assignment id="_PpZHrJvLEeS4v9KTZKHTwQ">

                <bpmn2:from xsi:type="bpmn2:tFormalExpression" id="_PpZHrZvLEeS4v9KTZKHTwQ"><![CDATA[GET]]></bpmn2:from>

                <bpmn2:to xsi:type="bpmn2:tFormalExpression" id="_PpZHrpvLEeS4v9KTZKHTwQ">_32EFD724-D74B-4FCC-9B63-B99F9803855B_MethodInputX</bpmn2:to>

              </bpmn2:assignment>

            </bpmn2:dataInputAssociation>

            <bpmn2:dataInputAssociation id="_PpZHr5vLEeS4v9KTZKHTwQ">

              <bpmn2:targetRef>_32EFD724-D74B-4FCC-9B63-B99F9803855B_UrlInputX</bpmn2:targetRef>

              <bpmn2:assignment id="_PpZHsJvLEeS4v9KTZKHTwQ">

                <bpmn2:from xsi:type="bpmn2:tFormalExpression" id="_PpZHsZvLEeS4v9KTZKHTwQ"><![CDATA[#{resultOfEndpoint}]]></bpmn2:from>

                <bpmn2:to xsi:type="bpmn2:tFormalExpression" id="_PpZHspvLEeS4v9KTZKHTwQ">_32EFD724-D74B-4FCC-9B63-B99F9803855B_UrlInputX</bpmn2:to>

              </bpmn2:assignment>

            </bpmn2:dataInputAssociation>

            <bpmn2:dataOutputAssociation id="_PpZHs5vLEeS4v9KTZKHTwQ">

              <bpmn2:sourceRef>_32EFD724-D74B-4FCC-9B63-B99F9803855B_ResultOutputX</bpmn2:sourceRef>

              <bpmn2:targetRef>subprResponse</bpmn2:targetRef>

            </bpmn2:dataOutputAssociation>

          </bpmn2:task>

          <bpmn2:endEvent id="_02817B13-660B-42E9-949B-6032F7FAA545" drools:bgcolor="#ff6347" drools:selectable="true" name="End">

            <bpmn2:incoming>bpmn20:_E2DBB41A-A148-44A7-B7EF-A0597A11276C</bpmn2:incoming>

            <bpmn2:terminateEventDefinition id="_PpZHtJvLEeS4v9KTZKHTwQ"/>

          </bpmn2:endEvent>

          <bpmn2:sequenceFlow id="_E2DBB41A-A148-44A7-B7EF-A0597A11276C" drools:priority="1" drools:bgcolor="#000000" drools:selectable="true" name="" sourceRef="_32EFD724-D74B-4FCC-9B63-B99F9803855B" targetRef="_02817B13-660B-42E9-949B-6032F7FAA545"/>

          <bpmn2:exclusiveGateway id="_1EE21431-3987-4862-961F-1C5E9C4B4E3E" drools:bgcolor="#f0e68c" drools:selectable="true" drools:bordercolor="#a67f00" drools:dg="" name="mode" gatewayDirection="Diverging">

            <bpmn2:incoming>bpmn20:_A2E06115-190C-472D-8071-7EF02BBBFF4F</bpmn2:incoming>

            <bpmn2:outgoing>bpmn20:_59F53EDD-54C6-4052-8E76-3507B891D2EA</bpmn2:outgoing>

            <bpmn2:outgoing>bpmn20:_01DFC0F9-A909-421F-847C-79BD66499583</bpmn2:outgoing>

          </bpmn2:exclusiveGateway>

          <bpmn2:sequenceFlow id="_A2E06115-190C-472D-8071-7EF02BBBFF4F" drools:priority="1" drools:bgcolor="#000000" drools:selectable="true" name="" sourceRef="processStartEvent" targetRef="_1EE21431-3987-4862-961F-1C5E9C4B4E3E"/>

          <bpmn2:sequenceFlow id="_59F53EDD-54C6-4052-8E76-3507B891D2EA" drools:priority="1" drools:bgcolor="#000000" drools:selectable="true" name="EMAIL" sourceRef="_1EE21431-3987-4862-961F-1C5E9C4B4E3E" targetRef="_E1E98DDF-DDA4-43ED-96C0-5C465EDDCA74">

            <bpmn2:conditionExpression xsi:type="bpmn2:tFormalExpression" id="_PpeAIJvLEeS4v9KTZKHTwQ" language="http://www.java.com/java">//return  KieFunctions.equalsTo(nm, &quot;EMAIL&quot;);&#xD;

      return true;&#xD;

      </bpmn2:conditionExpression>

          </bpmn2:sequenceFlow>

          <bpmn2:scriptTask id="_D4158E58-AE92-4118-881C-F0AD7112B745" drools:selectable="true" name="call SMS end-point" scriptFormat="http://www.java.com/java">

            <bpmn2:incoming>bpmn20:_01DFC0F9-A909-421F-847C-79BD66499583</bpmn2:incoming>

            <bpmn2:outgoing>bpmn20:_A976EFAA-E684-41F0-AA8A-BFE4034E4508</bpmn2:outgoing>

            <bpmn2:script>System.out.println(&quot;about to call ESB SMS end point----&quot;);

      System.out.println(&quot;about to call ESB SMS end-point---- value of notifation mode is -- &quot; + nm);</bpmn2:script>

          </bpmn2:scriptTask>

          <bpmn2:sequenceFlow id="_01DFC0F9-A909-421F-847C-79BD66499583" drools:priority="1" drools:bgcolor="#000000" drools:selectable="true" name="SMS" sourceRef="_1EE21431-3987-4862-961F-1C5E9C4B4E3E" targetRef="_D4158E58-AE92-4118-881C-F0AD7112B745">

            <bpmn2:conditionExpression xsi:type="bpmn2:tFormalExpression" id="_PqCn4JvLEeS4v9KTZKHTwQ" language="http://www.java.com/java">//return  KieFunctions.equalsTo(nm, &quot;SMS&quot;);&#xD;

      return false;&#xD;

      //return nm.equals(&quot;SMS&quot;);</bpmn2:conditionExpression>

          </bpmn2:sequenceFlow>

          <bpmn2:endEvent id="_F1D597AB-904D-4772-A0BC-FFDA4A2017AB" drools:bgcolor="#ff6347" drools:selectable="true" name="End">

            <bpmn2:incoming>bpmn20:_A976EFAA-E684-41F0-AA8A-BFE4034E4508</bpmn2:incoming>

            <bpmn2:terminateEventDefinition id="_PqCn4ZvLEeS4v9KTZKHTwQ"/>

          </bpmn2:endEvent>

          <bpmn2:sequenceFlow id="_A976EFAA-E684-41F0-AA8A-BFE4034E4508" drools:priority="1" drools:bgcolor="#000000" drools:selectable="true" name="" sourceRef="_D4158E58-AE92-4118-881C-F0AD7112B745" targetRef="_F1D597AB-904D-4772-A0BC-FFDA4A2017AB"/>

          <bpmn2:scriptTask id="_E1E98DDF-DDA4-43ED-96C0-5C465EDDCA74" drools:selectable="true" name="change variable" scriptFormat="http://www.java.com/java">

            <bpmn2:incoming>bpmn20:_59F53EDD-54C6-4052-8E76-3507B891D2EA</bpmn2:incoming>

            <bpmn2:outgoing>bpmn20:_96968EF4-B8B1-4ADB-AFBF-1DE6BED8D3C2</bpmn2:outgoing>

            <bpmn2:script>String urlForRestCall;

      urlForRestCall = &quot;&quot; + &quot;http://www.webservicex.net/currencyconvertor.asmx/ConversionRate?FromCurrency";

      urlForRestCall = urlForRestCall + &quot;=EUR&quot;;

      urlForRestCall= urlForRestCall + &quot;&amp;ToCurrency=&quot;;

      urlForRestCall= urlForRestCall+ reqCurCode;

      System.out.println(&quot;value of urlForRestCall at script level is -&quot; + urlForRestCall);

      kcontext.setVariable(&quot;resultOfEndpoint&quot;,urlForRestCall);

      // not working   resultOfEndpoint=urlForRestCall;

       

       

      </bpmn2:script>

          </bpmn2:scriptTask>

          <bpmn2:sequenceFlow id="_96968EF4-B8B1-4ADB-AFBF-1DE6BED8D3C2" drools:priority="1" drools:bgcolor="#000000" drools:selectable="true" name="" sourceRef="_E1E98DDF-DDA4-43ED-96C0-5C465EDDCA74" targetRef="_32EFD724-D74B-4FCC-9B63-B99F9803855B"/>

        </bpmn2:process>

        <bpmndi:BPMNDiagram id="_PqCn4pvLEeS4v9KTZKHTwQ">

          <bpmndi:BPMNPlane id="_PqCn45vLEeS4v9KTZKHTwQ" bpmnElement="rolnewbpm.NotificationSubProcess">

            <bpmndi:BPMNShape id="_PqCn5JvLEeS4v9KTZKHTwQ" bpmnElement="processStartEvent">

              <dc:Bounds height="30.0" width="30.0" x="15.0" y="51.0"/>

            </bpmndi:BPMNShape>

            <bpmndi:BPMNShape id="_PqCn5ZvLEeS4v9KTZKHTwQ" bpmnElement="_32EFD724-D74B-4FCC-9B63-B99F9803855B">

              <dc:Bounds height="80.0" width="100.0" x="270.0" y="14.0"/>

            </bpmndi:BPMNShape>

            <bpmndi:BPMNShape id="_PqCn5pvLEeS4v9KTZKHTwQ" bpmnElement="_02817B13-660B-42E9-949B-6032F7FAA545">

              <dc:Bounds height="28.0" width="28.0" x="403.0" y="35.0"/>

            </bpmndi:BPMNShape>

            <bpmndi:BPMNShape id="_PqCn6JvLEeS4v9KTZKHTwQ" bpmnElement="_1EE21431-3987-4862-961F-1C5E9C4B4E3E">

              <dc:Bounds height="40.0" width="40.0" x="90.0" y="120.0"/>

            </bpmndi:BPMNShape>

            <bpmndi:BPMNShape id="_PqCn65vLEeS4v9KTZKHTwQ" bpmnElement="_D4158E58-AE92-4118-881C-F0AD7112B745">

              <dc:Bounds height="80.0" width="100.0" x="195.0" y="135.0"/>

            </bpmndi:BPMNShape>

            <bpmndi:BPMNShape id="_PqCn7ZvLEeS4v9KTZKHTwQ" bpmnElement="_F1D597AB-904D-4772-A0BC-FFDA4A2017AB">

              <dc:Bounds height="28.0" width="28.0" x="404.0" y="119.0"/>

            </bpmndi:BPMNShape>

            <bpmndi:BPMNShape id="_PqCn75vLEeS4v9KTZKHTwQ" bpmnElement="_E1E98DDF-DDA4-43ED-96C0-5C465EDDCA74">

              <dc:Bounds height="80.0" width="100.0" x="135.0" y="26.0"/>

            </bpmndi:BPMNShape>

            <bpmndi:BPMNEdge id="_PqCn55vLEeS4v9KTZKHTwQ" bpmnElement="_E2DBB41A-A148-44A7-B7EF-A0597A11276C" sourceElement="_PqCn5ZvLEeS4v9KTZKHTwQ" targetElement="_PqCn5pvLEeS4v9KTZKHTwQ">

              <di:waypoint xsi:type="dc:Point" x="320.0" y="54.0"/>

              <di:waypoint xsi:type="dc:Point" x="417.0" y="49.0"/>

            </bpmndi:BPMNEdge>

            <bpmndi:BPMNEdge id="_PqCn6ZvLEeS4v9KTZKHTwQ" bpmnElement="_A2E06115-190C-472D-8071-7EF02BBBFF4F" sourceElement="_PqCn5JvLEeS4v9KTZKHTwQ" targetElement="_PqCn6JvLEeS4v9KTZKHTwQ">

              <di:waypoint xsi:type="dc:Point" x="30.0" y="66.0"/>

              <di:waypoint xsi:type="dc:Point" x="67.0" y="66.0"/>

              <di:waypoint xsi:type="dc:Point" x="67.0" y="140.0"/>

              <di:waypoint xsi:type="dc:Point" x="110.0" y="140.0"/>

            </bpmndi:BPMNEdge>

            <bpmndi:BPMNEdge id="_PqCn6pvLEeS4v9KTZKHTwQ" bpmnElement="_59F53EDD-54C6-4052-8E76-3507B891D2EA" sourceElement="_PqCn6JvLEeS4v9KTZKHTwQ" targetElement="_PqCn75vLEeS4v9KTZKHTwQ">

              <di:waypoint xsi:type="dc:Point" x="110.0" y="140.0"/>

              <di:waypoint xsi:type="dc:Point" x="115.0" y="55.0"/>

              <di:waypoint xsi:type="dc:Point" x="185.0" y="66.0"/>

            </bpmndi:BPMNEdge>

            <bpmndi:BPMNEdge id="_PqCn7JvLEeS4v9KTZKHTwQ" bpmnElement="_01DFC0F9-A909-421F-847C-79BD66499583" sourceElement="_PqCn6JvLEeS4v9KTZKHTwQ" targetElement="_PqCn65vLEeS4v9KTZKHTwQ">

              <di:waypoint xsi:type="dc:Point" x="110.0" y="140.0"/>

              <di:waypoint xsi:type="dc:Point" x="110.0" y="175.0"/>

              <di:waypoint xsi:type="dc:Point" x="245.0" y="175.0"/>

            </bpmndi:BPMNEdge>

            <bpmndi:BPMNEdge id="_PqCn7pvLEeS4v9KTZKHTwQ" bpmnElement="_A976EFAA-E684-41F0-AA8A-BFE4034E4508" sourceElement="_PqCn65vLEeS4v9KTZKHTwQ" targetElement="_PqCn7ZvLEeS4v9KTZKHTwQ">

              <di:waypoint xsi:type="dc:Point" x="245.0" y="175.0"/>

              <di:waypoint xsi:type="dc:Point" x="357.0" y="175.0"/>

              <di:waypoint xsi:type="dc:Point" x="357.0" y="149.0"/>

              <di:waypoint xsi:type="dc:Point" x="418.0" y="133.0"/>

            </bpmndi:BPMNEdge>

            <bpmndi:BPMNEdge id="_PqCn8JvLEeS4v9KTZKHTwQ" bpmnElement="_96968EF4-B8B1-4ADB-AFBF-1DE6BED8D3C2" sourceElement="_PqCn75vLEeS4v9KTZKHTwQ" targetElement="_PqCn5ZvLEeS4v9KTZKHTwQ">

              <di:waypoint xsi:type="dc:Point" x="185.0" y="66.0"/>

              <di:waypoint xsi:type="dc:Point" x="320.0" y="54.0"/>

            </bpmndi:BPMNEdge>

          </bpmndi:BPMNPlane>

        </bpmndi:BPMNDiagram>

      </bpmn2:definitions>