10 Replies Latest reply on Jul 14, 2017 2:24 PM by Martien van den Akker

    BPM TaskService fail to update task

    Maroof Ahmad

      Hi All,

       

      I am using Oracle BPM Task service to update customAttributes, I have user id and password and passing taskId in payload along with customAttributeString1, but i am getting below error. Task id is enough to identify task and update or what key can pass to update task.

       

      Version: Oracle BPM Suite 12.2.1.0

       

      java.lang.RuntimeException: com.sun.xml.ws.fault.ServerSOAPFaultException: Client received SOAP Fault from server:  Please see the server log to find more detail regarding exact cause of the failure.      at com.oracle.webservices.testclient.core.ws.cdf.SOAPBindingEngine.call(SOAPBindingEngine.java:87)      at com.oracle.webservices.testclient.wstest.InvocationDelegate.invoke(InvocationDelegate.java:46)      at com.oracle.webservices.testclient.wstest.WsTestCaller.invokeOpertion(WsTestCaller.java:95)      at com.oracle.webservices.testclient.ws.action.WsInvokeAction.execute(WsInvokeAction.java:67)      at com.oracle.webservices.testclient.ws.action.AbstractAction.process(AbstractAction.java:36)      at com.oracle.webservices.testclient.ws.res.WebserviceResource.invokeWebService(WebserviceResource.java:206)      at com.oracle.webservices.testclient.ws.res.WebserviceResource.invokeWebServiceByFormURLEncoded(WebserviceResource.java:179)      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)      at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)      at java.lang.reflect.Method.invoke(Method.java:498)      at org.glassfish.jersey.server.model.internal.ResourceMethodInvocationHandlerFactory$1.invoke(ResourceMethodInvocationHandlerFactory.java:81)      at org.glassfish.jersey.server.model.internal.AbstractJavaResourceMethodDispatcher$1.run(AbstractJavaResourceMethodDispatcher.java:144)      at org.glassfish.jersey.server.model.internal.AbstractJavaResourceMethodDispatcher.invoke(AbstractJavaResourceMethodDispatcher.java:161)      at org.glassfish.jersey.server.model.internal.JavaResourceMethodDispatcherProvider$TypeOutInvoker.doDispatch(JavaResourceMethodDispatcherProvider.java:205)      at org.glassfish.jersey.server.model.internal.AbstractJavaResourceMethodDispatcher.dispatch(AbstractJavaResourceMethodDispatcher.java:99)      at org.glassfish.jersey.server.model.ResourceMethodInvoker.invoke(ResourceMethodInvoker.java:389)      at org.glassfish.jersey.server.model.ResourceMethodInvoker.apply(ResourceMethodInvoker.java:347)      at org.glassfish.jersey.server.model.ResourceMethodInvoker.apply(ResourceMethodInvoker.java:102)      at org.glassfish.jersey.server.ServerRuntime$2.run(ServerRuntime.java:326)      at org.glassfish.jersey.internal.Errors$1.call(Errors.java:271)      at org.glassfish.jersey.internal.Errors$1.call(Errors.java:267)      at org.glassfish.jersey.internal.Errors.process(Errors.java:315)      at org.glassfish.jersey.internal.Errors.process(Errors.java:297)      at org.glassfish.jersey.internal.Errors.process(Errors.java:267)      at org.glassfish.jersey.process.internal.RequestScope.runInScope(RequestScope.java:317)      at org.glassfish.jersey.server.ServerRuntime.process(ServerRuntime.java:305)      at org.glassfish.jersey.server.ApplicationHandler.handle(ApplicationHandler.java:1154)      at org.glassfish.jersey.servlet.WebComponent.serviceImpl(WebComponent.java:471)      at org.glassfish.jersey.servlet.WebComponent.service(WebComponent.java:425)      at org.glassfish.jersey.servlet.ServletContainer.service(ServletContainer.java:383)      at org.glassfish.jersey.servlet.ServletContainer.service(ServletContainer.java:336)      at org.glassfish.jersey.servlet.ServletContainer.service(ServletContainer.java:223)      at weblogic.servlet.internal.StubSecurityHelper$ServletServiceAction.run(StubSecurityHelper.java:286)      at weblogic.servlet.internal.StubSecurityHelper$ServletServiceAction.run(StubSecurityHelper.java:260)      at weblogic.servlet.internal.StubSecurityHelper.invokeServlet(StubSecurityHelper.java:137)      at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:350)      at weblogic.servlet.internal.TailFilter.doFilter(TailFilter.java:25)      at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:78)      at com.oracle.webservices.testclient.web.LocaleFilter.doFilter(LocaleFilter.java:29)      at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:78)      at com.oracle.webservices.testclient.wlsweb.TestPageAccessFilter.doFilter(TestPageAccessFilter.java:43)      at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:78)      at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.wrapRun(WebAppServletContext.java:3683)      at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(WebAppServletContext.java:3649)      at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:326)      at weblogic.security.service.SecurityManager.runAsForUserCode(SecurityManager.java:197)      at weblogic.servlet.provider.WlsSecurityProvider.runAsForUserCode(WlsSecurityProvider.java:203)      at weblogic.servlet.provider.WlsSubjectHandle.run(WlsSubjectHandle.java:71)      at weblogic.servlet.internal.WebAppServletContext.doSecuredExecute(WebAppServletContext.java:2433)      at weblogic.servlet.internal.WebAppServletContext.securedExecute(WebAppServletContext.java:2281)      at weblogic.servlet.internal.WebAppServletContext.execute(WebAppServletContext.java:2259)      at weblogic.servlet.internal.ServletRequestImpl.runInternal(ServletRequestImpl.java:1686)      at weblogic.servlet.internal.ServletRequestImpl.run(ServletRequestImpl.java:1646)      at weblogic.servlet.provider.ContainerSupportProviderImpl$WlsRequestExecutor.run(ContainerSupportProviderImpl.java:270)      at weblogic.invocation.ComponentInvocationContextManager._runAs(ComponentInvocationContextManager.java:348)      at weblogic.invocation.ComponentInvocationContextManager.runAs(ComponentInvocationContextManager.java:333)      at weblogic.work.LivePartitionUtility.doRunWorkUnderContext(LivePartitionUtility.java:54)      at weblogic.work.PartitionUtility.runWorkUnderContext(PartitionUtility.java:41)      at weblogic.work.SelfTuningWorkManagerImpl.runWorkUnderContext(SelfTuningWorkManagerImpl.java:640)      at weblogic.work.ExecuteThread.execute(ExecuteThread.java:406)      at weblogic.work.ExecuteThread.run(ExecuteThread.java:346) Caused by: com.sun.xml.ws.fault.ServerSOAPFaultException: Client received SOAP Fault from server:  Please see the server log to find more detail regarding exact cause of the failure.      at com.sun.xml.ws.fault.SOAP11Fault.getProtocolException(SOAP11Fault.java:193)      at com.sun.xml.ws.fault.SOAPFaultBuilder.createException(SOAPFaultBuilder.java:128)      at com.sun.xml.ws.client.dispatch.DispatchImpl.doInvoke(DispatchImpl.java:274)      at com.sun.xml.ws.client.dispatch.DispatchImpl.invoke(DispatchImpl.java:304)      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)      at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)      at java.lang.reflect.Method.invoke(Method.java:498)      at weblogic.wsee.jaxws.spi.ClientInstanceInvocationHandler.invoke(ClientInstanceInvocationHandler.java:147)      at com.sun.proxy.$Proxy827.invoke(Unknown Source)      at com.oracle.webservices.testclient.core.ws.cdf.Engine.invoke(Engine.java:201)      at com.oracle.webservices.testclient.core.ws.cdf.SOAPBindingEngine.call(SOAPBindingEngine.java:60)      ... 61 more

       

      Thanks,

      Maroof

       

      java.lang.RuntimeException: com.sun.xml.ws.fault.ServerSOAPFaultException: Client received SOAP Fault from server:  Please see the server log to find more detail regarding exact cause of the failure. at com.oracle.webservices.testclient.core.ws.cdf.SOAPBindingEngine.call(SOAPBindingEngine.java:87) at com.oracle.webservices.testclient.wstest.InvocationDelegate.invoke(InvocationDelegate.java:46) at com.oracle.webservices.testclient.wstest.WsTestCaller.invokeOpertion(WsTestCaller.java:95) at com.oracle.webservices.testclient.ws.action.WsInvokeAction.execute(WsInvokeAction.java:67) at com.oracle.webservices.testclient.ws.action.AbstractAction.process(AbstractAction.java:36) at com.oracle.webservices.testclient.ws.res.WebserviceResource.invokeWebService(WebserviceResource.java:206) at com.oracle.webservices.testclient.ws.res.WebserviceResource.invokeWebServiceByFormURLEncoded(WebserviceResource.java:179) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:498) at org.glassfish.jersey.server.model.internal.ResourceMethodInvocationHandlerFactory$1.invoke(ResourceMethodInvocationHandlerFactory.java:81) at org.glassfish.jersey.server.model.internal.AbstractJavaResourceMethodDispatcher$1.run(AbstractJavaResourceMethodDispatcher.java:144) at org.glassfish.jersey.server.model.internal.AbstractJavaResourceMethodDispatcher.invoke(AbstractJavaResourceMethodDispatcher.java:161) at org.glassfish.jersey.server.model.internal.JavaResourceMethodDispatcherProvider$TypeOutInvoker.doDispatch(JavaResourceMethodDispatcherProvider.java:205) at org.glassfish.jersey.server.model.internal.AbstractJavaResourceMethodDispatcher.dispatch(AbstractJavaResourceMethodDispatcher.java:99) at org.glassfish.jersey.server.model.ResourceMethodInvoker.invoke(ResourceMethodInvoker.java:389) at org.glassfish.jersey.server.model.ResourceMethodInvoker.apply(ResourceMethodInvoker.java:347) at org.glassfish.jersey.server.model.ResourceMethodInvoker.apply(ResourceMethodInvoker.java:102) at org.glassfish.jersey.server.ServerRuntime$2.run(ServerRuntime.java:326) at org.glassfish.jersey.internal.Errors$1.call(Errors.java:271) at org.glassfish.jersey.internal.Errors$1.call(Errors.java:267) at org.glassfish.jersey.internal.Errors.process(Errors.java:315) at org.glassfish.jersey.internal.Errors.process(Errors.java:297) at org.glassfish.jersey.internal.Errors.process(Errors.java:267) at org.glassfish.jersey.process.internal.RequestScope.runInScope(RequestScope.java:317) at org.glassfish.jersey.server.ServerRuntime.process(ServerRuntime.java:305) at org.glassfish.jersey.server.ApplicationHandler.handle(ApplicationHandler.java:1154) at org.glassfish.jersey.servlet.WebComponent.serviceImpl(WebComponent.java:471) at org.glassfish.jersey.servlet.WebComponent.service(WebComponent.java:425) at org.glassfish.jersey.servlet.ServletContainer.service(ServletContainer.java:383) at org.glassfish.jersey.servlet.ServletContainer.service(ServletContainer.java:336) at org.glassfish.jersey.servlet.ServletContainer.service(ServletContainer.java:223) at weblogic.servlet.internal.StubSecurityHelper$ServletServiceAction.run(StubSecurityHelper.java:286) at weblogic.servlet.internal.StubSecurityHelper$ServletServiceAction.run(StubSecurityHelper.java:260) at weblogic.servlet.internal.StubSecurityHelper.invokeServlet(StubSecurityHelper.java:137) at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:350) at weblogic.servlet.internal.TailFilter.doFilter(TailFilter.java:25) at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:78) at com.oracle.webservices.testclient.web.LocaleFilter.doFilter(LocaleFilter.java:29) at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:78) at com.oracle.webservices.testclient.wlsweb.TestPageAccessFilter.doFilter(TestPageAccessFilter.java:43) at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:78) at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.wrapRun(WebAppServletContext.java:3683) at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(WebAppServletContext.java:3649) at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:326) at weblogic.security.service.SecurityManager.runAsForUserCode(SecurityManager.java:197) at weblogic.servlet.provider.WlsSecurityProvider.runAsForUserCode(WlsSecurityProvider.java:203) at weblogic.servlet.provider.WlsSubjectHandle.run(WlsSubjectHandle.java:71) at weblogic.servlet.internal.WebAppServletContext.doSecuredExecute(WebAppServletContext.java:2433) at weblogic.servlet.internal.WebAppServletContext.securedExecute(WebAppServletContext.java:2281) at weblogic.servlet.internal.WebAppServletContext.execute(WebAppServletContext.java:2259) at weblogic.servlet.internal.ServletRequestImpl.runInternal(ServletRequestImpl.java:1686) at weblogic.servlet.internal.ServletRequestImpl.run(ServletRequestImpl.java:1646) at weblogic.servlet.provider.ContainerSupportProviderImpl$WlsRequestExecutor.run(ContainerSupportProviderImpl.java:270) at weblogic.invocation.ComponentInvocationContextManager._runAs(ComponentInvocationContextManager.java:348) at weblogic.invocation.ComponentInvocationContextManager.runAs(ComponentInvocationContextManager.java:333) at weblogic.work.LivePartitionUtility.doRunWorkUnderContext(LivePartitionUtility.java:54) at weblogic.work.PartitionUtility.runWorkUnderContext(PartitionUtility.java:41) at weblogic.work.SelfTuningWorkManagerImpl.runWorkUnderContext(SelfTuningWorkManagerImpl.java:640) at weblogic.work.ExecuteThread.execute(ExecuteThread.java:406) at weblogic.work.ExecuteThread.run(ExecuteThread.java:346) Caused by: com.sun.xml.ws.fault.ServerSOAPFaultException: Client received SOAP Fault from server:  Please see the server log to find more detail regarding exact cause of the failure. at com.sun.xml.ws.fault.SOAP11Fault.getProtocolException(SOAP11Fault.java:193) at com.sun.xml.ws.fault.SOAPFaultBuilder.createException(SOAPFaultBuilder.java:128) at com.sun.xml.ws.client.dispatch.DispatchImpl.doInvoke(DispatchImpl.java:274) at com.sun.xml.ws.client.dispatch.DispatchImpl.invoke(DispatchImpl.java:304) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:498) at weblogic.wsee.jaxws.spi.ClientInstanceInvocationHandler.invoke(ClientInstanceInvocationHandler.java:147) at com.sun.proxy.$Proxy827.invoke(Unknown Source) at com.oracle.webservices.testclient.core.ws.cdf.Engine.invoke(Engine.java:201) at com.oracle.webservices.testclient.core.ws.cdf.SOAPBindingEngine.call(SOAPBindingEngine.java:60) ... 61 more

        • 1. Re: BPM TaskService fail to update task
          Martien van den Akker

          Hi Maroof,

          For the exact details of your problem, you should check the server log. As said by the line 'Caused by: com.sun.xml.ws.fault.ServerSOAPFaultException: Client received SOAP Fault from server:  Please see the server log to find more detail regarding exact cause of the failure. '

           

          However, a good reference  for what you're trying to accomplish, is Confessions of a Software Developer: OBPM 11g And Human Workflow Services .

          It's my starting point.

           

          Important is that for the update operation you need to get the task details. Then use the payload from the getTaskDetails operation, update the fields and use that in the update task operation.

          This is imporant, because it overwrites all the elements, and not supplying  means nullify.

           

          What helps me is to first work out what I'm trying to do using a SoapUI testcase, before implementing it in BPEL.

           

          Regards,
          Martien

          • 2. Re: BPM TaskService fail to update task
            Maroof Ahmad

            Hi Martien,

             

            Thanks reply.

             

            Scenario is that i am trying to update my task customAtributeString1 from SOAP UI, i am using below payload. but i am getting below error. I also have payload name Parameter1 and want to update. I saw many blog which providing Java client or .Net if possible can you help to get SOAP Payload which i can test from SOAP UI.

             

            <env:Body>

                  <env:Fault>

                     <faultcode>env:Receiver</faultcode>

                     <faultstring>EJB Exception: : java.lang.NullPointerException

            at oracle.bpel.services.workflow.task.impl.TaskService.updateTask(TaskService.java:2527)

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

             

             

            Below Payload i am trying but getting above error.

            <soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:tas="http://xmlns.oracle.com/bpel/workflow/taskService" xmlns:com="http://xmlns.oracle.com/bpel/workflow/common" xmlns:task="http://xmlns.oracle.com/bpel/workflow/task" xmlns:tas1="http://xmlns.oracle.com/bpel/workflow/TaskEvidenceService">

               <soapenv:Header/>

               <soapenv:Body>

                  <tas:updateTask>

                     <!--Optional:-->

                     <com:workflowContext>

                        <!--Optional:-->

                        <com:credential>

                           <com:login>weblogic</com:login>

                           <!--Optional:-->

                           <com:password>welcome1</com:password>

                        </com:credential>

                     </com:workflowContext>

                     <task:task> 

            <title>BpmProject</title>

                     <payload>

                        <Parameter1>Test222222</Parameter1>

                     </payload>

                     <taskDefinitionURI>default/BpmProject!1.1/OneLevelApprova</taskDefinitionURI>

                     <priority>3</priority>

                     <identityContext>jazn.com</identityContext>

                     <processInfo>

                        <instanceId>200005</instanceId>

                        <processId>BPMAsynchProcess</processId>

                        <processName>BPMAsynchProcess</processName>

                     </processInfo>

                     <systemAttributes>           

                        <displayInfo>

                           <applicationName>worklist</applicationName>

                           <hostname>CPX-TO1RMDL0988.dir.svc.XYZ.com</hostname>

                           <httpPort>7101</httpPort>

                           <httpsPort>7102</httpsPort>

                           <uri>/workflow/ProjectTess/faces/adf.task-flow?_id=OneLevelApprova_TaskFlow&amp;_document=WEB-INF/OneLevelApprova_TaskFlow.xml</uri>

                        </displayInfo>

                        <taskId>22b84e16-8d73-4069-84da-b7c67284212f</taskId>

                        <taskNumber>200079</taskNumber>   

                        <rootTaskId>22b84e16-8d73-4069-84da-b7c67284212f</rootTaskId>           

                     </systemAttributes>

                     <taskDefinitionId>default/BpmProject!1.1/OneLevelApprova</taskDefinitionId>

                     <correlationId>22b84e16-8d73-4069-84da-b7c67284212f</correlationId>

                     <mdsLabel>soa_3342246e-01a1-4efb-9a95-3d0467860c22</mdsLabel>

                     <customAttributes>

                       <customAttributeString1>maroof23</customAttributeString1>

                     </customAttributes>

                     </task:task>

                  </tas:updateTask>

               </soapenv:Body>

            </soapenv:Envelope>

            Regards,

            Maroof

            • 3. Re: BPM TaskService fail to update task
              Martien van den Akker

              Hi Maroof,

               

              I expect it is in:

              <payload>

                          <Parameter1>Test222222</Parameter1>

                       </payload>

              You should first do a getTaskDetailsById with <taskId>22b84e16-8d73-4069-84da-b7c67284212f</taskId>

              Could you provide the output of that call?

               

              Regards,
              Martien

              • 4. Re: BPM TaskService fail to update task
                Maroof Ahmad

                Hi Martien,

                 

                See Payload and result for <taskId>22b84e16-8d73-4069-84da-b7c67284212f</taskId>

                getTaskDetailsById payload

                <soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:tas="http://xmlns.oracle.com/bpel/workflow/taskQueryService" xmlns:com="http://xmlns.oracle.com/bpel/workflow/common">

                   <soapenv:Header/>

                   <soapenv:Body>

                      <tas:taskDetailsByIdRequest>

                         <!--Optional:-->

                         <com:workflowContext>

                            <!--Optional:-->

                            <com:credential>

                               <com:login>weblogic</com:login>

                               <!--Optional:-->

                               <com:password>welcome1</com:password>             

                            </com:credential>

                            </com:workflowContext>

                         <tas:taskId>22b84e16-8d73-4069-84da-b7c67284212f</tas:taskId>

                      </tas:taskDetailsByIdRequest>

                   </soapenv:Body>

                </soapenv:Envelope>

                getTaskDetailsById result

                 

                <env:Envelope xmlns:env="http://schemas.xmlsoap.org/soap/envelope/">

                   <env:Header/>

                   <env:Body>

                      <task xmlns="http://xmlns.oracle.com/bpel/workflow/task">

                         <title>BpmProject</title>

                         <payload>

                            <Parameter1>Test</Parameter1>

                         </payload>

                         <taskDefinitionURI>default/BpmProject!1.1/OneLevelApprova</taskDefinitionURI>

                         <priority>3</priority>

                         <identityContext>jazn.com</identityContext>

                         <processInfo>

                            <instanceId>200005</instanceId>

                            <processId>BPMAsynchProcess</processId>

                            <processName>BPMAsynchProcess</processName>

                         </processInfo>

                         <systemAttributes>

                            <assignedDate>2017-07-14T17:57:44.13+08:00</assignedDate>

                            <assigneeUsers>

                               <id>maroof</id>

                               <displayName>maroof</displayName>

                               <type>user</type>

                            </assigneeUsers>

                            <createdDate>2017-07-14T17:57:44+08:00</createdDate>

                            <digitalSignatureRequired>false</digitalSignatureRequired>

                            <displayInfo>

                               <applicationName>worklist</applicationName>

                               <hostname>CPX-TO1RMDL0988.dir.svc.xyz.com</hostname>

                               <httpPort>7101</httpPort>

                               <httpsPort>7102</httpsPort>

                               <uri>/workflow/ProjectTess/faces/adf.task-flow?_id=OneLevelApprova_TaskFlow&amp;_document=WEB-INF/OneLevelApprova_TaskFlow.xml</uri>

                            </displayInfo>

                            <fromUser>

                               <type>user</type>

                            </fromUser>

                            <hasSubTasks>false</hasSubTasks>

                            <inShortHistory>true</inShortHistory>

                            <isGroup>false</isGroup>

                            <numberOfTimesModified>1</numberOfTimesModified>

                            <passwordRequiredOnUpdate>false</passwordRequiredOnUpdate>

                            <pushbackSequence>INITIAL_ASSIGNEES;1</pushbackSequence>

                            <secureNotifications>false</secureNotifications>

                            <shortHistory>

                               <task>

                                  <state>ASSIGNED</state>

                                  <updatedBy>

                                     <id>workflowsystem</id>

                                     <type>user</type>

                                  </updatedBy>

                                  <updatedDate>2017-07-14T17:57:44+08:00</updatedDate>

                                  <version>1</version>

                                  <versionReason>TASK_VERSION_REASON_INITIATED</versionReason>

                               </task>

                            </shortHistory>

                            <state>ASSIGNED</state>

                            <systemActions>

                               <action>CREATE_TODO</action>

                               <displayName>CREATE_TODO</displayName>

                            </systemActions>

                            <systemActions>

                               <action>VIEW_PROCESS_HISTORY</action>

                               <displayName>VIEW_PROCESS_HISTORY</displayName>

                            </systemActions>

                            <systemActions>

                               <action>SKIP_CURRENT_ASSIGNMENT</action>

                               <displayName>SKIP_CURRENT_ASSIGNMENT</displayName>

                            </systemActions>

                            <systemActions>

                               <action>VIEW_TASK</action>

                               <displayName>VIEW_TASK</displayName>

                            </systemActions>

                            <systemActions>

                               <action>VIEW_TASK_HISTORY</action>

                               <displayName>VIEW_TASK_HISTORY</displayName>

                            </systemActions>

                            <systemActions>

                               <action>START_TASK</action>

                               <displayName>START_TASK</displayName>

                            </systemActions>

                            <systemActions>

                               <action>SUSPEND_TIMERS</action>

                               <displayName>SUSPEND_TIMERS</displayName>

                            </systemActions>

                            <systemActions>

                               <action>ESCALATE</action>

                               <displayName>ESCALATE</displayName>

                            </systemActions>

                            <systemActions>

                               <action>WITHDRAW</action>

                               <displayName>WITHDRAW</displayName>

                            </systemActions>

                            <systemActions>

                               <action>OVERRIDE_ROUTING_SLIP</action>

                               <displayName>OVERRIDE_ROUTING_SLIP</displayName>

                            </systemActions>

                            <systemActions>

                               <action>VIEW_SUB_TASKS</action>

                               <displayName>VIEW_SUB_TASKS</displayName>

                            </systemActions>

                            <systemActions>

                               <action>UPDATE</action>

                               <displayName>UPDATE</displayName>

                            </systemActions>

                            <systemActions>

                               <action>UPDATE_ATTACHMENT</action>

                               <displayName>UPDATE_ATTACHMENT</displayName>

                            </systemActions>

                            <systemActions>

                               <action>UPDATE_COMMENT</action>

                               <displayName>UPDATE_COMMENT</displayName>

                            </systemActions>

                            <systemActions>

                               <action>REASSIGN</action>

                               <displayName>REASSIGN</displayName>

                            </systemActions>

                            <systemActions>

                               <action>SUSPEND</action>

                               <displayName>SUSPEND</displayName>

                            </systemActions>

                            <systemActions>

                               <action>DECOMPOSE_TASK</action>

                               <displayName>DECOMPOSE_TASK</displayName>

                            </systemActions>

                            <taskId>22b84e16-8d73-4069-84da-b7c67284212f</taskId>

                            <taskNumber>200079</taskNumber>

                            <updatedBy>

                               <id>workflowsystem</id>

                               <type>user</type>

                            </updatedBy>

                            <updatedDate>2017-07-14T17:57:44+08:00</updatedDate>

                            <version>1</version>

                            <versionReason>TASK_VERSION_REASON_INITIATED</versionReason>

                            <taskDefinitionId>default/BpmProject!1.1/OneLevelApprova</taskDefinitionId>

                            <taskDefinitionName>OneLevelApprova</taskDefinitionName>

                            <workflowPattern>Participant</workflowPattern>

                            <isTestTask>false</isTestTask>

                            <participantName>Stage1.Participant1</participantName>

                            <reviewers>

                               <id>BpmProject.ProcessReviewer</id>

                               <displayName/>

                               <type>application_role</type>

                            </reviewers>

                            <assignees>

                               <id>maroof</id>

                               <displayName>maroof</displayName>

                               <type>user</type>

                            </assignees>

                            <rootTaskId>22b84e16-8d73-4069-84da-b7c67284212f</rootTaskId>

                            <systemStringActions>PUSH_BACK,sharePayload</systemStringActions>

                            <stage>Stage1</stage>

                            <isTemplateTask>false</isTemplateTask>

                            <taskNamespace>http://xmlns.oracle.com/BPMPOCApplication/BpmProject/OneLevelApprova</taskNamespace>

                            <actionDisplayName>Assigned</actionDisplayName>

                            <componentType>Workflow</componentType>

                            <activityName>Officer1</activityName>

                            <activityId>ACT19826143596598</activityId>

                            <thread>0</thread>

                            <parentThread>-1</parentThread>

                            <swimlaneRole>ProcessOwner</swimlaneRole>

                            <timersSuspended>false</timersSuspended>

                            <isDecomposedTask>false</isDecomposedTask>

                            <formName>default</formName>

                            <imageUrl>https://CPX-TO1RMDL0988.dir.svc.xyz.com:7102/integration/services/bpmImage</imageUrl>

                            <hiddenAttributes>

                               <isCreatorHidden>false</isCreatorHidden>

                               <creatorCustomText/>

                            </hiddenAttributes>

                         </systemAttributes>

                         <systemMessageAttributes>

                            <numberAttribute1>0.0</numberAttribute1>

                            <numberAttribute2>0.0</numberAttribute2>

                            <numberAttribute3>0.0</numberAttribute3>

                            <numberAttribute4>0.0</numberAttribute4>

                            <numberAttribute5>0.0</numberAttribute5>

                            <numberAttribute6>0.0</numberAttribute6>

                            <numberAttribute7>0.0</numberAttribute7>

                            <numberAttribute8>0.0</numberAttribute8>

                            <numberAttribute9>0.0</numberAttribute9>

                            <numberAttribute10>0.0</numberAttribute10>

                            <protectedNumberAttribute1>0.0</protectedNumberAttribute1>

                            <protectedNumberAttribute2>0.0</protectedNumberAttribute2>

                            <protectedNumberAttribute3>0.0</protectedNumberAttribute3>

                            <protectedNumberAttribute4>0.0</protectedNumberAttribute4>

                            <protectedNumberAttribute5>0.0</protectedNumberAttribute5>

                            <protectedNumberAttribute6>0.0</protectedNumberAttribute6>

                            <protectedNumberAttribute7>0.0</protectedNumberAttribute7>

                            <protectedNumberAttribute8>0.0</protectedNumberAttribute8>

                            <protectedNumberAttribute9>0.0</protectedNumberAttribute9>

                            <protectedNumberAttribute10>0.0</protectedNumberAttribute10>

                         </systemMessageAttributes>

                         <callback>

                            <id>BPMAsynchProcess/HumanTasks.OneLevelApprova.reference</id>

                            <converstationId>urn:e1bc6b7b-687a-11e7-a6af-a0a8cd330ce8</converstationId>

                         </callback>

                         <isPublic>false</isPublic>

                         <sca>

                            <applicationName>default</applicationName>

                            <componentName>OneLevelApprova</componentName>

                            <compositeDN>default/BpmProject!1.1*soa_3342246e-01a1-4efb-9a95-3d0467860c22</compositeDN>

                            <compositeInstanceId>200002</compositeInstanceId>

                            <compositeName>BpmProject</compositeName>

                            <compositeVersion>1.1</compositeVersion>

                            <ecId>1ab05fd5-88f6-461d-8b18-2539285bc2cd-0000048e</ecId>

                            <parentComponentInstanceId>bpmn:200005</parentComponentInstanceId>

                            <parentComponentInstanceRefId>200005-ACT19826143596598-BPMAsynchProcess_try.2-1</parentComponentInstanceRefId>

                            <compositeCreatedTime>2017-07-14T17:57:43.818+08:00</compositeCreatedTime>

                            <componentInstanceId>200006</componentInstanceId>

                            <flowId>200002</flowId>

                            <scaPartitionId>1</scaPartitionId>

                         </sca>

                         <taskDefinitionId>default/BpmProject!1.1/OneLevelApprova</taskDefinitionId>

                         <correlationId>22b84e16-8d73-4069-84da-b7c67284212f</correlationId>

                         <mdsLabel>soa_3342246e-01a1-4efb-9a95-3d0467860c22</mdsLabel>

                         <customAttributes>

                            <customAttributeString1>maroof</customAttributeString1>

                            <customAttributeNumber1>0.0</customAttributeNumber1>

                            <customAttributeNumber2>0.0</customAttributeNumber2>

                         </customAttributes>

                      </task>

                   </env:Body>

                </env:Envelope>

                            <numberAttribute4>0.0</numberAttribute4>

                            <numberAttribute5>0.0</numberAttribute5>

                            <numberAttribute6>0.0</numberAttribute6>

                            <numberAttribute7>0.0</numberAttribute7>

                            <numberAttribute8>0.0</numberAttribute8>

                            <numberAttribute9>0.0</numberAttribute9>

                            <numberAttribute10>0.0</numberAttribute10>

                            <protectedNumberAttribute1>0.0</protectedNumberAttribute1>

                            <protectedNumberAttribute2>0.0</protectedNumberAttribute2>

                            <protectedNumberAttribute3>0.0</protectedNumberAttribute3>

                            <protectedNumberAttribute4>0.0</protectedNumberAttribute4>

                            <protectedNumberAttribute5>0.0</protectedNumberAttribute5>

                            <protectedNumberAttribute6>0.0</protectedNumberAttribute6>

                            <protectedNumberAttribute7>0.0</protectedNumberAttribute7>

                            <protectedNumberAttribute8>0.0</protectedNumberAttribute8>

                            <protectedNumberAttribute9>0.0</protectedNumberAttribute9>

                            <protectedNumberAttribute10>0.0</protectedNumberAttribute10>

                         </systemMessageAttributes>

                         <callback>

                            <id>BPMAsynchProcess/HumanTasks.OneLevelApprova.reference</id>

                            <converstationId>urn:e1bc6b7b-687a-11e7-a6af-a0a8cd330ce8</converstationId>

                         </callback>

                         <isPublic>false</isPublic>

                         <sca>

                            <applicationName>default</applicationName>

                            <componentName>OneLevelApprova</componentName>

                            <compositeDN>default/BpmProject!1.1*soa_3342246e-01a1-4efb-9a95-3d0467860c22</compositeDN>

                            <compositeInstanceId>200002</compositeInstanceId>

                            <compositeName>BpmProject</compositeName>

                            <compositeVersion>1.1</compositeVersion>

                            <ecId>1ab05fd5-88f6-461d-8b18-2539285bc2cd-0000048e</ecId>

                            <parentComponentInstanceId>bpmn:200005</parentComponentInstanceId>

                            <parentComponentInstanceRefId>200005-ACT19826143596598-BPMAsynchProcess_try.2-1</parentComponentInstanceRefId>

                            <compositeCreatedTime>2017-07-14T17:57:43.818+08:00</compositeCreatedTime>

                            <componentInstanceId>200006</componentInstanceId>

                            <flowId>200002</flowId>

                            <scaPartitionId>1</scaPartitionId>

                         </sca>

                         <taskDefinitionId>default/BpmProject!1.1/OneLevelApprova</taskDefinitionId>

                         <correlationId>22b84e16-8d73-4069-84da-b7c67284212f</correlationId>

                         <mdsLabel>soa_3342246e-01a1-4efb-9a95-3d0467860c22</mdsLabel>

                         <customAttributes>

                            <customAttributeString1>maroof</customAttributeString1>

                            <customAttributeNumber1>0.0</customAttributeNumber1>

                            <customAttributeNumber2>0.0</customAttributeNumber2>

                         </customAttributes>

                      </task>

                   </env:Body>

                </env:Envelope>

                • 5. Re: BPM TaskService fail to update task
                  Martien van den Akker

                  Hi Maroof,

                   

                  Can you then try this with the update task?

                   

                   

                  <soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:tas="http://xmlns.oracle.com/bpel/workflow/taskService" xmlns:com="http://xmlns.oracle.com/bpel/workflow/common" xmlns:task="http://xmlns.oracle.com/bpel/workflow/task" xmlns:tas1="http://xmlns.oracle.com/bpel/workflow/TaskEvidenceService">

                     <soapenv:Header/>

                     <soapenv:Body>

                        <tas:updateTask>

                           <!--Optional:-->

                           <com:workflowContext>

                              <!--Optional:-->

                              <com:credential>

                                 <com:login>weblogic</com:login>

                                 <!--Optional:-->

                                 <com:password>welcome1</com:password>

                              </com:credential>

                           </com:workflowContext>

                   

                   

                  <task xmlns="http://xmlns.oracle.com/bpel/workflow/task">

                           <title>BpmProject</title>

                           <payload>

                              <Parameter1>Test</Parameter1>

                           </payload>

                           <taskDefinitionURI>default/BpmProject!1.1/OneLevelApprova</taskDefinitionURI>

                           <priority>3</priority>

                           <identityContext>jazn.com</identityContext>

                           <processInfo>

                              <instanceId>200005</instanceId>

                              <processId>BPMAsynchProcess</processId>

                              <processName>BPMAsynchProcess</processName>

                           </processInfo>

                           <systemAttributes>

                              <assignedDate>2017-07-14T17:57:44.13+08:00</assignedDate>

                              <assigneeUsers>

                                 <id>maroof</id>

                                 <displayName>maroof</displayName>

                                 <type>user</type>

                              </assigneeUsers>

                              <createdDate>2017-07-14T17:57:44+08:00</createdDate>

                              <digitalSignatureRequired>false</digitalSignatureRequired>

                              <displayInfo>

                                 <applicationName>worklist</applicationName>

                                 <hostname>CPX-TO1RMDL0988.dir.svc.xyz.com</hostname>

                                 <httpPort>7101</httpPort>

                                 <httpsPort>7102</httpsPort>

                                 <uri>/workflow/ProjectTess/faces/adf.task-flow?_id=OneLevelApprova_TaskFlow&amp;_document=WEB-INF/OneLevelApprova_TaskFlow.xml</uri>

                              </displayInfo>

                              <fromUser>

                                 <type>user</type>

                              </fromUser>

                              <hasSubTasks>false</hasSubTasks>

                              <inShortHistory>true</inShortHistory>

                              <isGroup>false</isGroup>

                              <numberOfTimesModified>1</numberOfTimesModified>

                              <passwordRequiredOnUpdate>false</passwordRequiredOnUpdate>

                              <pushbackSequence>INITIAL_ASSIGNEES;1</pushbackSequence>

                              <secureNotifications>false</secureNotifications>

                              <shortHistory>

                                 <task>

                                    <state>ASSIGNED</state>

                                    <updatedBy>

                                       <id>workflowsystem</id>

                                       <type>user</type>

                                    </updatedBy>

                                    <updatedDate>2017-07-14T17:57:44+08:00</updatedDate>

                                    <version>1</version>

                                    <versionReason>TASK_VERSION_REASON_INITIATED</versionReason>

                                 </task>

                              </shortHistory>

                              <state>ASSIGNED</state>

                              <systemActions>

                                 <action>CREATE_TODO</action>

                                 <displayName>CREATE_TODO</displayName>

                              </systemActions>

                              <systemActions>

                                 <action>VIEW_PROCESS_HISTORY</action>

                                 <displayName>VIEW_PROCESS_HISTORY</displayName>

                              </systemActions>

                              <systemActions>

                                 <action>SKIP_CURRENT_ASSIGNMENT</action>

                                 <displayName>SKIP_CURRENT_ASSIGNMENT</displayName>

                              </systemActions>

                              <systemActions>

                                 <action>VIEW_TASK</action>

                                 <displayName>VIEW_TASK</displayName>

                              </systemActions>

                              <systemActions>

                                 <action>VIEW_TASK_HISTORY</action>

                                 <displayName>VIEW_TASK_HISTORY</displayName>

                              </systemActions>

                              <systemActions>

                                 <action>START_TASK</action>

                                 <displayName>START_TASK</displayName>

                              </systemActions>

                              <systemActions>

                                 <action>SUSPEND_TIMERS</action>

                                 <displayName>SUSPEND_TIMERS</displayName>

                              </systemActions>

                              <systemActions>

                                 <action>ESCALATE</action>

                                 <displayName>ESCALATE</displayName>

                              </systemActions>

                              <systemActions>

                                 <action>WITHDRAW</action>

                                 <displayName>WITHDRAW</displayName>

                              </systemActions>

                              <systemActions>

                                 <action>OVERRIDE_ROUTING_SLIP</action>

                                 <displayName>OVERRIDE_ROUTING_SLIP</displayName>

                              </systemActions>

                              <systemActions>

                                 <action>VIEW_SUB_TASKS</action>

                                 <displayName>VIEW_SUB_TASKS</displayName>

                              </systemActions>

                              <systemActions>

                                 <action>UPDATE</action>

                                 <displayName>UPDATE</displayName>

                              </systemActions>

                              <systemActions>

                                 <action>UPDATE_ATTACHMENT</action>

                                 <displayName>UPDATE_ATTACHMENT</displayName>

                              </systemActions>

                              <systemActions>

                                 <action>UPDATE_COMMENT</action>

                                 <displayName>UPDATE_COMMENT</displayName>

                              </systemActions>

                              <systemActions>

                                 <action>REASSIGN</action>

                                 <displayName>REASSIGN</displayName>

                              </systemActions>

                              <systemActions>

                                 <action>SUSPEND</action>

                                 <displayName>SUSPEND</displayName>

                              </systemActions>

                              <systemActions>

                                 <action>DECOMPOSE_TASK</action>

                                 <displayName>DECOMPOSE_TASK</displayName>

                              </systemActions>

                              <taskId>22b84e16-8d73-4069-84da-b7c67284212f</taskId>

                              <taskNumber>200079</taskNumber>

                              <updatedBy>

                                 <id>workflowsystem</id>

                                 <type>user</type>

                              </updatedBy>

                              <updatedDate>2017-07-14T17:57:44+08:00</updatedDate>

                              <version>1</version>

                              <versionReason>TASK_VERSION_REASON_INITIATED</versionReason>

                              <taskDefinitionId>default/BpmProject!1.1/OneLevelApprova</taskDefinitionId>

                              <taskDefinitionName>OneLevelApprova</taskDefinitionName>

                              <workflowPattern>Participant</workflowPattern>

                              <isTestTask>false</isTestTask>

                              <participantName>Stage1.Participant1</participantName>

                              <reviewers>

                                 <id>BpmProject.ProcessReviewer</id>

                                 <displayName/>

                                 <type>application_role</type>

                              </reviewers>

                              <assignees>

                                 <id>maroof</id>

                                 <displayName>maroof</displayName>

                                 <type>user</type>

                              </assignees>

                              <rootTaskId>22b84e16-8d73-4069-84da-b7c67284212f</rootTaskId>

                              <systemStringActions>PUSH_BACK,sharePayload</systemStringActions>

                              <stage>Stage1</stage>

                              <isTemplateTask>false</isTemplateTask>

                              <taskNamespace>http://xmlns.oracle.com/BPMPOCApplication/BpmProject/OneLevelApprova</taskNamespace>

                              <actionDisplayName>Assigned</actionDisplayName>

                              <componentType>Workflow</componentType>

                              <activityName>Officer1</activityName>

                              <activityId>ACT19826143596598</activityId>

                              <thread>0</thread>

                              <parentThread>-1</parentThread>

                              <swimlaneRole>ProcessOwner</swimlaneRole>

                              <timersSuspended>false</timersSuspended>

                              <isDecomposedTask>false</isDecomposedTask>

                              <formName>default</formName>

                              <imageUrl>https://CPX-TO1RMDL0988.dir.svc.xyz.com:7102/integration/services/bpmImage</imageUrl>

                              <hiddenAttributes>

                                 <isCreatorHidden>false</isCreatorHidden>

                                 <creatorCustomText/>

                              </hiddenAttributes>

                           </systemAttributes>

                           <systemMessageAttributes>

                              <numberAttribute1>0.0</numberAttribute1>

                              <numberAttribute2>0.0</numberAttribute2>

                              <numberAttribute3>0.0</numberAttribute3>

                              <numberAttribute4>0.0</numberAttribute4>

                              <numberAttribute5>0.0</numberAttribute5>

                              <numberAttribute6>0.0</numberAttribute6>

                              <numberAttribute7>0.0</numberAttribute7>

                              <numberAttribute8>0.0</numberAttribute8>

                              <numberAttribute9>0.0</numberAttribute9>

                              <numberAttribute10>0.0</numberAttribute10>

                              <protectedNumberAttribute1>0.0</protectedNumberAttribute1>

                              <protectedNumberAttribute2>0.0</protectedNumberAttribute2>

                              <protectedNumberAttribute3>0.0</protectedNumberAttribute3>

                              <protectedNumberAttribute4>0.0</protectedNumberAttribute4>

                              <protectedNumberAttribute5>0.0</protectedNumberAttribute5>

                              <protectedNumberAttribute6>0.0</protectedNumberAttribute6>

                              <protectedNumberAttribute7>0.0</protectedNumberAttribute7>

                              <protectedNumberAttribute8>0.0</protectedNumberAttribute8>

                              <protectedNumberAttribute9>0.0</protectedNumberAttribute9>

                              <protectedNumberAttribute10>0.0</protectedNumberAttribute10>

                           </systemMessageAttributes>

                           <callback>

                              <id>BPMAsynchProcess/HumanTasks.OneLevelApprova.reference</id>

                              <converstationId>urn:e1bc6b7b-687a-11e7-a6af-a0a8cd330ce8</converstationId>

                           </callback>

                           <isPublic>false</isPublic>

                           <sca>

                              <applicationName>default</applicationName>

                              <componentName>OneLevelApprova</componentName>

                              <compositeDN>default/BpmProject!1.1*soa_3342246e-01a1-4efb-9a95-3d0467860c22</compositeDN>

                              <compositeInstanceId>200002</compositeInstanceId>

                              <compositeName>BpmProject</compositeName>

                              <compositeVersion>1.1</compositeVersion>

                              <ecId>1ab05fd5-88f6-461d-8b18-2539285bc2cd-0000048e</ecId>

                              <parentComponentInstanceId>bpmn:200005</parentComponentInstanceId>

                              <parentComponentInstanceRefId>200005-ACT19826143596598-BPMAsynchProcess_try.2-1</parentComponentInstanceRefId>

                              <compositeCreatedTime>2017-07-14T17:57:43.818+08:00</compositeCreatedTime>

                              <componentInstanceId>200006</componentInstanceId>

                              <flowId>200002</flowId>

                              <scaPartitionId>1</scaPartitionId>

                           </sca>

                           <taskDefinitionId>default/BpmProject!1.1/OneLevelApprova</taskDefinitionId>

                           <correlationId>22b84e16-8d73-4069-84da-b7c67284212f</correlationId>

                           <mdsLabel>soa_3342246e-01a1-4efb-9a95-3d0467860c22</mdsLabel>

                           <customAttributes>

                              <customAttributeString1>maroof</customAttributeString1>

                              <customAttributeNumber1>0.0</customAttributeNumber1>

                              <customAttributeNumber2>0.0</customAttributeNumber2>

                           </customAttributes>

                        </task>

                     </env:Body>

                  </env:Envelope>

                              <numberAttribute4>0.0</numberAttribute4>

                              <numberAttribute5>0.0</numberAttribute5>

                              <numberAttribute6>0.0</numberAttribute6>

                              <numberAttribute7>0.0</numberAttribute7>

                              <numberAttribute8>0.0</numberAttribute8>

                              <numberAttribute9>0.0</numberAttribute9>

                              <numberAttribute10>0.0</numberAttribute10>

                              <protectedNumberAttribute1>0.0</protectedNumberAttribute1>

                              <protectedNumberAttribute2>0.0</protectedNumberAttribute2>

                              <protectedNumberAttribute3>0.0</protectedNumberAttribute3>

                              <protectedNumberAttribute4>0.0</protectedNumberAttribute4>

                              <protectedNumberAttribute5>0.0</protectedNumberAttribute5>

                              <protectedNumberAttribute6>0.0</protectedNumberAttribute6>

                              <protectedNumberAttribute7>0.0</protectedNumberAttribute7>

                              <protectedNumberAttribute8>0.0</protectedNumberAttribute8>

                              <protectedNumberAttribute9>0.0</protectedNumberAttribute9>

                              <protectedNumberAttribute10>0.0</protectedNumberAttribute10>

                           </systemMessageAttributes>

                           <callback>

                              <id>BPMAsynchProcess/HumanTasks.OneLevelApprova.reference</id>

                              <converstationId>urn:e1bc6b7b-687a-11e7-a6af-a0a8cd330ce8</converstationId>

                           </callback>

                           <isPublic>false</isPublic>

                           <sca>

                              <applicationName>default</applicationName>

                              <componentName>OneLevelApprova</componentName>

                              <compositeDN>default/BpmProject!1.1*soa_3342246e-01a1-4efb-9a95-3d0467860c22</compositeDN>

                              <compositeInstanceId>200002</compositeInstanceId>

                              <compositeName>BpmProject</compositeName>

                              <compositeVersion>1.1</compositeVersion>

                              <ecId>1ab05fd5-88f6-461d-8b18-2539285bc2cd-0000048e</ecId>

                              <parentComponentInstanceId>bpmn:200005</parentComponentInstanceId>

                              <parentComponentInstanceRefId>200005-ACT19826143596598-BPMAsynchProcess_try.2-1</parentComponentInstanceRefId>

                              <compositeCreatedTime>2017-07-14T17:57:43.818+08:00</compositeCreatedTime>

                              <componentInstanceId>200006</componentInstanceId>

                              <flowId>200002</flowId>

                              <scaPartitionId>1</scaPartitionId>

                           </sca>

                           <taskDefinitionId>default/BpmProject!1.1/OneLevelApprova</taskDefinitionId>

                           <correlationId>22b84e16-8d73-4069-84da-b7c67284212f</correlationId>

                           <mdsLabel>soa_3342246e-01a1-4efb-9a95-3d0467860c22</mdsLabel>

                           <customAttributes>

                              <customAttributeString1>maroof23</customAttributeString1>

                              <customAttributeNumber1>0.0</customAttributeNumber1>

                              <customAttributeNumber2>0.0</customAttributeNumber2>

                           </customAttributes>

                        </task>

                   

                        </tas:updateTask>

                     </soapenv:Body>

                  </soapenv:Envelope>

                   

                   

                   

                  What I basically did was pick your updateTask request  and replaced the complete task part with the task in the response of your getTaskDetailsById call. Then updated the customAttributeString1. This should do the job.

                   

                  Regards,
                  Martien

                  • 6. Re: BPM TaskService fail to update task
                    Martien van den Akker

                    Oops, one little mistake...

                     

                    Remove the

                       </env:Body>

                    </env:Envelope>

                     

                    behind the

                     

                    </task>

                     

                    Sorry, about that...

                    • 7. Re: BPM TaskService fail to update task
                      Martien van den Akker

                      Oh, there is a bit more to delete after the </task>. Found that your getTaskDetailsById response had some clutter. The following should be ok:

                       

                      <soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:tas="http://xmlns.oracle.com/bpel/workflow/taskService" xmlns:com="http://xmlns.oracle.com/bpel/workflow/common" xmlns:task="http://xmlns.oracle.com/bpel/workflow/task" xmlns:tas1="http://xmlns.oracle.com/bpel/workflow/TaskEvidenceService">
                         <soapenv:Header/>
                         <soapenv:Body>
                            <tas:updateTask>
                               <!--Optional:-->
                               <com:workflowContext>
                                  <!--Optional:-->
                                  <com:credential>
                                     <com:login>weblogic</com:login>
                                     <!--Optional:-->
                                     <com:password>welcome1</com:password>
                                  </com:credential>
                               </com:workflowContext>
                                   <task xmlns="http://xmlns.oracle.com/bpel/workflow/task">
                           <title>BpmProject</title>
                           <payload>
                              <Parameter1>Test</Parameter1>
                           </payload>
                           <taskDefinitionURI>default/BpmProject!1.1/OneLevelApprova</taskDefinitionURI>
                           <priority>3</priority>
                           <identityContext>jazn.com</identityContext>
                           <processInfo>
                              <instanceId>200005</instanceId>
                              <processId>BPMAsynchProcess</processId>
                              <processName>BPMAsynchProcess</processName>
                           </processInfo>
                           <systemAttributes>
                              <assignedDate>2017-07-14T17:57:44.13+08:00</assignedDate>
                              <assigneeUsers>
                                 <id>maroof</id>
                                 <displayName>maroof</displayName>
                                 <type>user</type>
                              </assigneeUsers>
                              <createdDate>2017-07-14T17:57:44+08:00</createdDate>
                              <digitalSignatureRequired>false</digitalSignatureRequired>
                              <displayInfo>
                                 <applicationName>worklist</applicationName>
                                 <hostname>CPX-TO1RMDL0988.dir.svc.xyz.com</hostname>
                                 <httpPort>7101</httpPort>
                                 <httpsPort>7102</httpsPort>
                                 <uri>/workflow/ProjectTess/faces/adf.task-flow?_id=OneLevelApprova_TaskFlow&amp;_document=WEB-INF/OneLevelApprova_TaskFlow.xml</uri>
                              </displayInfo>
                              <fromUser>
                                 <type>user</type>
                              </fromUser>
                              <hasSubTasks>false</hasSubTasks>
                              <inShortHistory>true</inShortHistory>
                              <isGroup>false</isGroup>
                              <numberOfTimesModified>1</numberOfTimesModified>
                              <passwordRequiredOnUpdate>false</passwordRequiredOnUpdate>
                              <pushbackSequence>INITIAL_ASSIGNEES;1</pushbackSequence>
                              <secureNotifications>false</secureNotifications>
                              <shortHistory>
                                 <task>
                                    <state>ASSIGNED</state>
                                    <updatedBy>
                                       <id>workflowsystem</id>
                                       <type>user</type>
                                    </updatedBy>
                                    <updatedDate>2017-07-14T17:57:44+08:00</updatedDate>
                                    <version>1</version>
                                    <versionReason>TASK_VERSION_REASON_INITIATED</versionReason>
                                 </task>
                              </shortHistory>
                              <state>ASSIGNED</state>
                              <systemActions>
                                 <action>CREATE_TODO</action>
                                 <displayName>CREATE_TODO</displayName>
                              </systemActions>
                              <systemActions>
                                 <action>VIEW_PROCESS_HISTORY</action>
                                 <displayName>VIEW_PROCESS_HISTORY</displayName>
                              </systemActions>
                              <systemActions>
                                 <action>SKIP_CURRENT_ASSIGNMENT</action>
                                 <displayName>SKIP_CURRENT_ASSIGNMENT</displayName>
                              </systemActions>
                              <systemActions>
                                 <action>VIEW_TASK</action>
                                 <displayName>VIEW_TASK</displayName>
                              </systemActions>
                              <systemActions>
                                 <action>VIEW_TASK_HISTORY</action>
                                 <displayName>VIEW_TASK_HISTORY</displayName>
                              </systemActions>
                              <systemActions>
                                 <action>START_TASK</action>
                                 <displayName>START_TASK</displayName>
                              </systemActions>
                              <systemActions>
                                 <action>SUSPEND_TIMERS</action>
                                 <displayName>SUSPEND_TIMERS</displayName>
                              </systemActions>
                              <systemActions>
                                 <action>ESCALATE</action>
                                 <displayName>ESCALATE</displayName>
                              </systemActions>
                              <systemActions>
                                 <action>WITHDRAW</action>
                                 <displayName>WITHDRAW</displayName>
                              </systemActions>
                              <systemActions>
                                 <action>OVERRIDE_ROUTING_SLIP</action>
                                 <displayName>OVERRIDE_ROUTING_SLIP</displayName>
                              </systemActions>
                              <systemActions>
                                 <action>VIEW_SUB_TASKS</action>
                                 <displayName>VIEW_SUB_TASKS</displayName>
                              </systemActions>
                              <systemActions>
                                 <action>UPDATE</action>
                                 <displayName>UPDATE</displayName>
                              </systemActions>
                              <systemActions>
                                 <action>UPDATE_ATTACHMENT</action>
                                 <displayName>UPDATE_ATTACHMENT</displayName>
                              </systemActions>
                              <systemActions>
                                 <action>UPDATE_COMMENT</action>
                                 <displayName>UPDATE_COMMENT</displayName>
                              </systemActions>
                              <systemActions>
                                 <action>REASSIGN</action>
                                 <displayName>REASSIGN</displayName>
                              </systemActions>
                              <systemActions>
                                 <action>SUSPEND</action>
                                 <displayName>SUSPEND</displayName>
                              </systemActions>
                              <systemActions>
                                 <action>DECOMPOSE_TASK</action>
                                 <displayName>DECOMPOSE_TASK</displayName>
                              </systemActions>
                              <taskId>22b84e16-8d73-4069-84da-b7c67284212f</taskId>
                              <taskNumber>200079</taskNumber>
                              <updatedBy>
                                 <id>workflowsystem</id>
                                 <type>user</type>
                              </updatedBy>
                              <updatedDate>2017-07-14T17:57:44+08:00</updatedDate>
                              <version>1</version>
                              <versionReason>TASK_VERSION_REASON_INITIATED</versionReason>
                              <taskDefinitionId>default/BpmProject!1.1/OneLevelApprova</taskDefinitionId>
                              <taskDefinitionName>OneLevelApprova</taskDefinitionName>
                              <workflowPattern>Participant</workflowPattern>
                              <isTestTask>false</isTestTask>
                              <participantName>Stage1.Participant1</participantName>
                              <reviewers>
                                 <id>BpmProject.ProcessReviewer</id>
                                 <displayName/>
                                 <type>application_role</type>
                              </reviewers>
                              <assignees>
                                 <id>maroof</id>
                                 <displayName>maroof</displayName>
                                 <type>user</type>
                              </assignees>
                              <rootTaskId>22b84e16-8d73-4069-84da-b7c67284212f</rootTaskId>
                              <systemStringActions>PUSH_BACK,sharePayload</systemStringActions>
                              <stage>Stage1</stage>
                              <isTemplateTask>false</isTemplateTask>
                              <taskNamespace>http://xmlns.oracle.com/BPMPOCApplication/BpmProject/OneLevelApprova</taskNamespace>
                              <actionDisplayName>Assigned</actionDisplayName>
                              <componentType>Workflow</componentType>
                              <activityName>Officer1</activityName>
                              <activityId>ACT19826143596598</activityId>
                              <thread>0</thread>
                              <parentThread>-1</parentThread>
                              <swimlaneRole>ProcessOwner</swimlaneRole>
                              <timersSuspended>false</timersSuspended>
                              <isDecomposedTask>false</isDecomposedTask>
                              <formName>default</formName>
                              <imageUrl>https://CPX-TO1RMDL0988.dir.svc.xyz.com:7102/integration/services/bpmImage</imageUrl>
                              <hiddenAttributes>
                                 <isCreatorHidden>false</isCreatorHidden>
                                 <creatorCustomText/>
                              </hiddenAttributes>
                           </systemAttributes>
                           <systemMessageAttributes>
                              <numberAttribute1>0.0</numberAttribute1>
                              <numberAttribute2>0.0</numberAttribute2>
                              <numberAttribute3>0.0</numberAttribute3>
                              <numberAttribute4>0.0</numberAttribute4>
                              <numberAttribute5>0.0</numberAttribute5>
                              <numberAttribute6>0.0</numberAttribute6>
                              <numberAttribute7>0.0</numberAttribute7>
                              <numberAttribute8>0.0</numberAttribute8>
                              <numberAttribute9>0.0</numberAttribute9>
                              <numberAttribute10>0.0</numberAttribute10>
                              <protectedNumberAttribute1>0.0</protectedNumberAttribute1>
                              <protectedNumberAttribute2>0.0</protectedNumberAttribute2>
                              <protectedNumberAttribute3>0.0</protectedNumberAttribute3>
                              <protectedNumberAttribute4>0.0</protectedNumberAttribute4>
                              <protectedNumberAttribute5>0.0</protectedNumberAttribute5>
                              <protectedNumberAttribute6>0.0</protectedNumberAttribute6>
                              <protectedNumberAttribute7>0.0</protectedNumberAttribute7>
                              <protectedNumberAttribute8>0.0</protectedNumberAttribute8>
                              <protectedNumberAttribute9>0.0</protectedNumberAttribute9>
                              <protectedNumberAttribute10>0.0</protectedNumberAttribute10>
                           </systemMessageAttributes>
                           <callback>
                              <id>BPMAsynchProcess/HumanTasks.OneLevelApprova.reference</id>
                              <converstationId>urn:e1bc6b7b-687a-11e7-a6af-a0a8cd330ce8</converstationId>
                           </callback>
                           <isPublic>false</isPublic>
                           <sca>
                              <applicationName>default</applicationName>
                              <componentName>OneLevelApprova</componentName>
                              <compositeDN>default/BpmProject!1.1*soa_3342246e-01a1-4efb-9a95-3d0467860c22</compositeDN>
                              <compositeInstanceId>200002</compositeInstanceId>
                              <compositeName>BpmProject</compositeName>
                              <compositeVersion>1.1</compositeVersion>
                              <ecId>1ab05fd5-88f6-461d-8b18-2539285bc2cd-0000048e</ecId>
                              <parentComponentInstanceId>bpmn:200005</parentComponentInstanceId>
                              <parentComponentInstanceRefId>200005-ACT19826143596598-BPMAsynchProcess_try.2-1</parentComponentInstanceRefId>
                              <compositeCreatedTime>2017-07-14T17:57:43.818+08:00</compositeCreatedTime>
                              <componentInstanceId>200006</componentInstanceId>
                              <flowId>200002</flowId>
                              <scaPartitionId>1</scaPartitionId>
                           </sca>
                           <taskDefinitionId>default/BpmProject!1.1/OneLevelApprova</taskDefinitionId>
                           <correlationId>22b84e16-8d73-4069-84da-b7c67284212f</correlationId>
                           <mdsLabel>soa_3342246e-01a1-4efb-9a95-3d0467860c22</mdsLabel>
                           <customAttributes>
                              <customAttributeString1>maroof</customAttributeString1>
                              <customAttributeNumber1>0.0</customAttributeNumber1>
                              <customAttributeNumber2>0.0</customAttributeNumber2>
                           </customAttributes>
                        </task>
                             
                            </tas:updateTask>
                         </soapenv:Body>
                      </soapenv:Envelope>

                       

                      Regards,
                      Martien

                      • 8. Re: BPM TaskService fail to update task
                        Martien van den Akker

                        But replace in my last try <customAttributeString1>maroof</customAttributeString1> with <customAttributeString1>maroof23</customAttributeString1>...

                        • 9. Re: BPM TaskService fail to update task
                          Maroof Ahmad

                          Thanks Martien,

                           

                          Its worked for me.

                          • 10. Re: BPM TaskService fail to update task
                            Martien van den Akker

                            Nice! Glad to be of help.