Looking up process instance from UserTask

Hello all,
I have got the following Problem, I created a UserTask with the workflow wizard. I used the workflow api to lookup the user task for a specific user. No I have got a oracle.tip.pc.api.worklist.IWorklistTask Interface where I can get the ProcessId, the ProcessName, the ProcessOwner and the ProcessVersion of the process that started the user task. Now I want to lookup a process variable of this process instance. Any hints how this is possible via the Java API?
Thanks for help.
Regards.

Hi , I am having a problem with the workflow api. I can't a user taks initialized in the Bpel server. When I use the IWorklistService to retrieve the task list it returns empty, and no instances of TaskManager appears in the console. I can't find an error message somewhere, in the console or in any server log file . I'm working with version B18846-01 with patches. I don't know if I'm missing something when using the User Task Wizard .
TaskActionHandler keeps waiting for the TaskUpdate to occur but is not happening.
I'll appreciate any help you can give me.

Similar Messages

  • Initiating BPM Process Instances from External Web Service Call

    I'm attempting to update the HelloWorld example so that I can create an instance of the process from an External Web Services Call rather than via the Workspace. Our current SOA Architecture is configured so that all BPM instances are managed through a .NET SmartClient via the Service Bus and the use of PAPI W/S and so I'm wishing to recreate this capability in the new BPM.
    I understand the replacement for PAPI W/S is Human Workflow so I've therefore updated and republished the HelloWorld Example with an Exposed 'TaskService' Service for the Human Task within the BPM Process.
    I've then attempted to reference the TaskService through our existing BPM, and have been able to import a number of generic WSDL's as follows:
    Task Service
    http://vmaquatestapp2:7001/integration/services/TaskService/TaskServicePort?WSDL
    Task Metadata Service
    http://vmaquatestapp2:7001/integration/services/TaskMetadataService/TaskMetadataServicePort?WSDL
    Task Query Service
    http://vmaquatestapp2:7001/integration/services/TaskQueryService/TaskQueryService?WSDL
    When I examine the available operations for these generic services, there are quite a lot, each of which have a fairly complex schema. I believe I should be using the TaskService: InitiateTask Operation to create an instance of my BPM Process but my questions are:
    - Is the above the correct method of interacting with BPM Instances from an external system such as the Service Bus?
    - Does anyone have any examples of a basic XML payload that would initiate a process instance?

    I created an process with a message start event and can call it from an external web service call. I can also pass input arguments and map those to process data objects. However I can not find how to return data as response to the external web service call as e.g. the process instance id.
    Is it possible to this?
    Gr,
    Gert Jan Kersten

  • BPM 11g: problem trying invoke a process instance from Java

    Hi all,
    I'm trying use this java code http://kr.forums.oracle.com/forums/thread.jspa?messageID=9244238
    bpmServiceClientFactory = BPMServiceClientFactory.getInstance(properties, null, null);
    bpmContext = bpmServiceClientFactory.getBPMUserAuthenticationService().authenticate(user, password, null);
    Task task = bpmServiceClientFactory.getBPMServiceClient().getInstanceManagementService().createProcessInstanceTask(bpmContext, "default/SimpleExpense!1.0soa_fd9a3a31-7f6e-4577-b64a ad1cfc523559/ExpenseProcess");*
    and this is the error we get from server... *¿does someone knows how to resolve it?* Thanks.
    <16-feb-2011 18H14' CET> <Error> <RJVM> <BEA-000503> <Incoming message header or abbreviation processing failed
    java.io.InvalidClassException: oracle.bpel.services.workflow.verification.impl.WorkflowContext; local class incompatible: stream classdesc serialVersionUID = 3642712178109525089, local class serialVersionUID = 1
    java.io.InvalidClassException: oracle.bpel.services.workflow.verification.impl.WorkflowContext; local class incompatible: stream classdesc serialVersionUID = 3642712178109525089, local class serialVersionUID = 1
         at java.io.ObjectStreamClass.initNonProxy(ObjectStreamClass.java:562)
         at java.io.ObjectInputStream.readNonProxyDesc(ObjectInputStream.java:1583)
         at java.io.ObjectInputStream.readClassDesc(ObjectInputStream.java:1496)
         at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1316)
         at java.io.ObjectInputStream.readObject(ObjectInputStream.java:351)
         at weblogic.rjvm.ClassTableEntry.readExternal(ClassTableEntry.java:36)
         at java.io.ObjectInputStream.readExternalData(ObjectInputStream.java:1792)
         at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1751)
         at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1329)
         at java.io.ObjectInputStream.readObject(ObjectInputStream.java:351)
         at weblogic.rjvm.InboundMsgAbbrev.readObject(InboundMsgAbbrev.java:65)
         at weblogic.rjvm.InboundMsgAbbrev.read(InboundMsgAbbrev.java:37)
         at weblogic.rjvm.MsgAbbrevJVMConnection.readMsgAbbrevs(MsgAbbrevJVMConnection.java:227)
         at weblogic.rjvm.MsgAbbrevInputStream.init(MsgAbbrevInputStream.java:212)
         at weblogic.rjvm.MsgAbbrevJVMConnection.dispatch(MsgAbbrevJVMConnection.java:442)
         at weblogic.rjvm.http.HTTPClientJVMConnection.receiveAndDispatch(HTTPClientJVMConnection.java:378)
         at weblogic.rjvm.http.HTTPClientJVMConnection.run(HTTPClientJVMConnection.java:244)
         at weblogic.work.ExecuteRequestAdapter.execute(ExecuteRequestAdapter.java:21)
         at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:145)
         at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:117)
    >
    javax.ejb.EJBException: ; nested exception is:
         java.rmi.UnmarshalException: Incoming message header or abbreviation processing failed ; nested exception is:
         java.io.InvalidClassException: oracle.bpel.services.workflow.verification.impl.WorkflowContext; local class incompatible: stream classdesc serialVersionUID = 3642712178109525089, local class serialVersionUID = 1; nested exception is: java.rmi.UnmarshalException: Incoming message header or abbreviation processing failed ; nested exception is:
         java.io.InvalidClassException: oracle.bpel.services.workflow.verification.impl.WorkflowContext; local class incompatible: stream classdesc serialVersionUID = 3642712178109525089, local class serialVersionUID = 1
    java.rmi.UnmarshalException: Incoming message header or abbreviation processing failed ; nested exception is:
         java.io.InvalidClassException: oracle.bpel.services.workflow.verification.impl.WorkflowContext; local class incompatible: stream classdesc serialVersionUID = 3642712178109525089, local class serialVersionUID = 1
         at weblogic.rjvm.MsgAbbrevJVMConnection.dispatch(MsgAbbrevJVMConnection.java:451)
         at weblogic.rjvm.http.HTTPClientJVMConnection.receiveAndDispatch(HTTPClientJVMConnection.java:378)
         at weblogic.rjvm.http.HTTPClientJVMConnection.run(HTTPClientJVMConnection.java:244)
         at weblogic.work.ExecuteRequestAdapter.execute(ExecuteRequestAdapter.java:21)
         at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:145)
         at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:117)
    Caused by: java.io.InvalidClassException: oracle.bpel.services.workflow.verification.impl.WorkflowContext; local class incompatible: stream classdesc serialVersionUID = 3642712178109525089, local class serialVersionUID = 1
         at java.io.ObjectStreamClass.initNonProxy(ObjectStreamClass.java:562)
         at java.io.ObjectInputStream.readNonProxyDesc(ObjectInputStream.java:1583)
         at java.io.ObjectInputStream.readClassDesc(ObjectInputStream.java:1496)
         at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1316)
         at java.io.ObjectInputStream.readObject(ObjectInputStream.java:351)
         at weblogic.rjvm.ClassTableEntry.readExternal(ClassTableEntry.java:36)
         at java.io.ObjectInputStream.readExternalData(ObjectInputStream.java:1792)
         at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1751)
         at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1329)
         at java.io.ObjectInputStream.readObject(ObjectInputStream.java:351)
         at weblogic.rjvm.InboundMsgAbbrev.readObject(InboundMsgAbbrev.java:65)
         at weblogic.rjvm.InboundMsgAbbrev.read(InboundMsgAbbrev.java:37)
         at weblogic.rjvm.MsgAbbrevJVMConnection.readMsgAbbrevs(MsgAbbrevJVMConnection.java:227)
         at weblogic.rjvm.MsgAbbrevInputStream.init(MsgAbbrevInputStream.java:212)
         at weblogic.rjvm.MsgAbbrevJVMConnection.dispatch(MsgAbbrevJVMConnection.java:442)
         ... 5 more

    I hope you have got the solution for this problem.
    will you please share the solution. as I am also facing the same...
    Thanks

  • How to Create a process instance from already deployed PD

    After deploying the process definition created in jDeveloper,
    I can access it through EJB services. From the processMetadataService, we can get the initiatable processes.
    processMetadataService.getInitiatableProcesses(ibpmContextForAuthenticatedUser);
    I am able to see the process id and all other details of the processes.
    But when i am using
    instanceManagementService.createProcessInstanceTask(bpmContextForAuthenticatedUser, initiatableProcesses.get(2).getProcessId());
    I am getting the exception as follows. what may be the reason and how to resolve it?
    Exception in thread "main" javax.ejb.EJBException: EJB Exception: ; nested exception is:
         java.lang.RuntimeException: bad composite child dn: 343; nested exception is: java.lang.RuntimeException: bad composite child dn: 343
    java.lang.RuntimeException: bad composite child dn: 343
         at oracle.soa.management.CompositeChildDN.<init>(CompositeChildDN.java:67)
         at oracle.soa.management.ComponentDN.<init>(ComponentDN.java:38)
         at oracle.bpm.services.instancemanagement.impl.InstanceManagementService.createProcessInstanceTask(InstanceManagementService.java:207)
         at sun.reflect.GeneratedMethodAccessor10053.invoke(Unknown Source)
         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
         at java.lang.reflect.Method.invoke(Method.java:597)
         at org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:307)
         at org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:182)
         at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:149)
         at oracle.bpel.services.workflow.common.WorkflowServiceCacheEventAdvice.invoke(WorkflowServiceCacheEventAdvice.java:91)
         at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:171)
         at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:204)
         at $Proxy232.createProcessInstanceTask(Unknown Source)
         at oracle.bpm.services.instancemanagement.ejb.InstanceManagementServiceBean.createProcessInstanceTask(InstanceManagementServiceBean.java:112)
         at sun.reflect.GeneratedMethodAccessor10052.invoke(Unknown Source)
         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
         at java.lang.reflect.Method.invoke(Method.java:597)
         at com.bea.core.repackaged.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:310)
         at com.bea.core.repackaged.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:182)
         at com.bea.core.repackaged.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:149)
         at com.bea.core.repackaged.springframework.aop.support.DelegatingIntroductionInterceptor.doProceed(DelegatingIntroductionInterceptor.java:131)
         at com.bea.core.repackaged.springframework.aop.support.DelegatingIntroductionInterceptor.invoke(DelegatingIntroductionInterceptor.java:119)
         at com.bea.core.repackaged.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:171)
         at com.bea.core.repackaged.springframework.jee.spi.MethodInvocationVisitorImpl.visit(MethodInvocationVisitorImpl.java:37)
         at weblogic.ejb.container.injection.EnvironmentInterceptorCallbackImpl.callback(EnvironmentInterceptorCallbackImpl.java:54)
         at com.bea.core.repackaged.springframework.jee.spi.EnvironmentInterceptor.invoke(EnvironmentInterceptor.java:50)
         at com.bea.core.repackaged.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:171)
         at com.bea.core.repackaged.springframework.aop.interceptor.ExposeInvocationInterceptor.invoke(ExposeInvocationInterceptor.java:89)
         at com.bea.core.repackaged.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:171)
         at com.bea.core.repackaged.springframework.aop.support.DelegatingIntroductionInterceptor.doProceed(DelegatingIntroductionInterceptor.java:131)
         at com.bea.core.repackaged.springframework.aop.support.DelegatingIntroductionInterceptor.invoke(DelegatingIntroductionInterceptor.java:119)
         at com.bea.core.repackaged.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:171)
         at com.bea.core.repackaged.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:204)
         at $Proxy258.createProcessInstanceTask(Unknown Source)
         at oracle.bpm.services.instancemanagement.ejb.InstanceManagementServiceBean_sqa2w0_IInstanceManagementServiceRemoteImpl.__WL_invoke(Unknown Source)
         at weblogic.ejb.container.internal.SessionRemoteMethodInvoker.invoke(SessionRemoteMethodInvoker.java:40)
         at oracle.bpm.services.instancemanagement.ejb.InstanceManagementServiceBean_sqa2w0_IInstanceManagementServiceRemoteImpl.createProcessInstanceTask(Unknown Source)
         at oracle.bpm.services.instancemanagement.ejb.InstanceManagementServiceBean_sqa2w0_IInstanceManagementServiceRemoteImpl_WLSkel.invoke(Unknown Source)
         at weblogic.rmi.internal.BasicServerRef.invoke(BasicServerRef.java:667)
         at weblogic.rmi.cluster.ClusterableServerRef.invoke(ClusterableServerRef.java:230)
         at weblogic.rmi.internal.BasicServerRef$1.run(BasicServerRef.java:522)
         at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:363)
         at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:146)
         at weblogic.rmi.internal.BasicServerRef.handleRequest(BasicServerRef.java:518)
         at weblogic.rmi.internal.wls.WLSExecuteRequest.run(WLSExecuteRequest.java:118)
         at weblogic.work.ExecuteThread.execute(ExecuteThread.java:209)
         at weblogic.work.ExecuteThread.run(ExecuteThread.java:178)
    javax.ejb.EJBException: EJB Exception: ; nested exception is:
         java.lang.RuntimeException: bad composite child dn: 343; nested exception is: java.lang.RuntimeException: bad composite child dn: 343
         at weblogic.ejb.container.internal.RemoteBusinessIntfProxy.unwrapRemoteException(RemoteBusinessIntfProxy.java:121)
         at weblogic.ejb.container.internal.RemoteBusinessIntfProxy.invoke(RemoteBusinessIntfProxy.java:96)
         at $Proxy16.createProcessInstanceTask(Unknown Source)
         at com.test.TestSample.main(TestSample.java:77)
    Caused by: java.lang.RuntimeException: bad composite child dn: 343
         at oracle.soa.management.CompositeChildDN.<init>(CompositeChildDN.java:67)
         at oracle.soa.management.ComponentDN.<init>(ComponentDN.java:38)
         at oracle.bpm.services.instancemanagement.impl.InstanceManagementService.createProcessInstanceTask(InstanceManagementService.java:207)
         at sun.reflect.GeneratedMethodAccessor10053.invoke(Unknown Source)
         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
         at java.lang.reflect.Method.invoke(Method.java:597)
         at org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:307)
         at org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:182)
         at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:149)
         at oracle.bpel.services.workflow.common.WorkflowServiceCacheEventAdvice.invoke(WorkflowServiceCacheEventAdvice.java:91)
         at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:171)
         at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:204)
         at $Proxy232.createProcessInstanceTask(Unknown Source)
         at oracle.bpm.services.instancemanagement.ejb.InstanceManagementServiceBean.createProcessInstanceTask(InstanceManagementServiceBean.java:112)
         at sun.reflect.GeneratedMethodAccessor10052.invoke(Unknown Source)
         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
         at java.lang.reflect.Method.invoke(Method.java:597)
         at com.bea.core.repackaged.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:310)
         at com.bea.core.repackaged.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:182)
         at com.bea.core.repackaged.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:149)
         at com.bea.core.repackaged.springframework.aop.support.DelegatingIntroductionInterceptor.doProceed(DelegatingIntroductionInterceptor.java:131)
         at com.bea.core.repackaged.springframework.aop.support.DelegatingIntroductionInterceptor.invoke(DelegatingIntroductionInterceptor.java:119)
         at com.bea.core.repackaged.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:171)
         at com.bea.core.repackaged.springframework.jee.spi.MethodInvocationVisitorImpl.visit(MethodInvocationVisitorImpl.java:37)
         at weblogic.ejb.container.injection.EnvironmentInterceptorCallbackImpl.callback(EnvironmentInterceptorCallbackImpl.java:54)
         at com.bea.core.repackaged.springframework.jee.spi.EnvironmentInterceptor.invoke(EnvironmentInterceptor.java:50)
         at com.bea.core.repackaged.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:171)
         at com.bea.core.repackaged.springframework.aop.interceptor.ExposeInvocationInterceptor.invoke(ExposeInvocationInterceptor.java:89)
         at com.bea.core.repackaged.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:171)
         at com.bea.core.repackaged.springframework.aop.support.DelegatingIntroductionInterceptor.doProceed(DelegatingIntroductionInterceptor.java:131)
         at com.bea.core.repackaged.springframework.aop.support.DelegatingIntroductionInterceptor.invoke(DelegatingIntroductionInterceptor.java:119)
         at com.bea.core.repackaged.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:171)
         at com.bea.core.repackaged.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:204)
         at $Proxy258.createProcessInstanceTask(Unknown Source)
         at oracle.bpm.services.instancemanagement.ejb.InstanceManagementServiceBean_sqa2w0_IInstanceManagementServiceRemoteImpl.__WL_invoke(Unknown Source)
         at weblogic.ejb.container.internal.SessionRemoteMethodInvoker.invoke(SessionRemoteMethodInvoker.java:40)
         at oracle.bpm.services.instancemanagement.ejb.InstanceManagementServiceBean_sqa2w0_IInstanceManagementServiceRemoteImpl.createProcessInstanceTask(Unknown Source)
         at oracle.bpm.services.instancemanagement.ejb.InstanceManagementServiceBean_sqa2w0_IInstanceManagementServiceRemoteImpl_WLSkel.invoke(Unknown Source)
         at weblogic.rmi.internal.BasicServerRef.invoke(BasicServerRef.java:667)
         at weblogic.rmi.cluster.ClusterableServerRef.invoke(ClusterableServerRef.java:230)
         at weblogic.rmi.internal.BasicServerRef$1.run(BasicServerRef.java:522)
         at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:363)
         at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:146)
         at weblogic.rmi.internal.BasicServerRef.handleRequest(BasicServerRef.java:518)
         at weblogic.rmi.internal.wls.WLSExecuteRequest.run(WLSExecuteRequest.java:118)
         at weblogic.work.ExecuteThread.execute(ExecuteThread.java:209)
         at weblogic.work.ExecuteThread.run(ExecuteThread.java:178)
    Edited by: 967671 on Oct 25, 2012 7:58 AM

    After deploying the process definition created in jDeveloper,
    I can access it through EJB services. From the processMetadataService, we can get the initiatable processes.
    processMetadataService.getInitiatableProcesses(ibpmContextForAuthenticatedUser);
    I am able to see the process id and all other details of the processes.
    But when i am using
    instanceManagementService.createProcessInstanceTask(bpmContextForAuthenticatedUser, initiatableProcesses.get(2).getProcessId());
    I am getting the exception as follows. what may be the reason and how to resolve it?
    Exception in thread "main" javax.ejb.EJBException: EJB Exception: ; nested exception is:
         java.lang.RuntimeException: bad composite child dn: 343; nested exception is: java.lang.RuntimeException: bad composite child dn: 343
    java.lang.RuntimeException: bad composite child dn: 343
         at oracle.soa.management.CompositeChildDN.<init>(CompositeChildDN.java:67)
         at oracle.soa.management.ComponentDN.<init>(ComponentDN.java:38)
         at oracle.bpm.services.instancemanagement.impl.InstanceManagementService.createProcessInstanceTask(InstanceManagementService.java:207)
         at sun.reflect.GeneratedMethodAccessor10053.invoke(Unknown Source)
         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
         at java.lang.reflect.Method.invoke(Method.java:597)
         at org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:307)
         at org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:182)
         at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:149)
         at oracle.bpel.services.workflow.common.WorkflowServiceCacheEventAdvice.invoke(WorkflowServiceCacheEventAdvice.java:91)
         at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:171)
         at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:204)
         at $Proxy232.createProcessInstanceTask(Unknown Source)
         at oracle.bpm.services.instancemanagement.ejb.InstanceManagementServiceBean.createProcessInstanceTask(InstanceManagementServiceBean.java:112)
         at sun.reflect.GeneratedMethodAccessor10052.invoke(Unknown Source)
         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
         at java.lang.reflect.Method.invoke(Method.java:597)
         at com.bea.core.repackaged.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:310)
         at com.bea.core.repackaged.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:182)
         at com.bea.core.repackaged.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:149)
         at com.bea.core.repackaged.springframework.aop.support.DelegatingIntroductionInterceptor.doProceed(DelegatingIntroductionInterceptor.java:131)
         at com.bea.core.repackaged.springframework.aop.support.DelegatingIntroductionInterceptor.invoke(DelegatingIntroductionInterceptor.java:119)
         at com.bea.core.repackaged.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:171)
         at com.bea.core.repackaged.springframework.jee.spi.MethodInvocationVisitorImpl.visit(MethodInvocationVisitorImpl.java:37)
         at weblogic.ejb.container.injection.EnvironmentInterceptorCallbackImpl.callback(EnvironmentInterceptorCallbackImpl.java:54)
         at com.bea.core.repackaged.springframework.jee.spi.EnvironmentInterceptor.invoke(EnvironmentInterceptor.java:50)
         at com.bea.core.repackaged.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:171)
         at com.bea.core.repackaged.springframework.aop.interceptor.ExposeInvocationInterceptor.invoke(ExposeInvocationInterceptor.java:89)
         at com.bea.core.repackaged.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:171)
         at com.bea.core.repackaged.springframework.aop.support.DelegatingIntroductionInterceptor.doProceed(DelegatingIntroductionInterceptor.java:131)
         at com.bea.core.repackaged.springframework.aop.support.DelegatingIntroductionInterceptor.invoke(DelegatingIntroductionInterceptor.java:119)
         at com.bea.core.repackaged.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:171)
         at com.bea.core.repackaged.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:204)
         at $Proxy258.createProcessInstanceTask(Unknown Source)
         at oracle.bpm.services.instancemanagement.ejb.InstanceManagementServiceBean_sqa2w0_IInstanceManagementServiceRemoteImpl.__WL_invoke(Unknown Source)
         at weblogic.ejb.container.internal.SessionRemoteMethodInvoker.invoke(SessionRemoteMethodInvoker.java:40)
         at oracle.bpm.services.instancemanagement.ejb.InstanceManagementServiceBean_sqa2w0_IInstanceManagementServiceRemoteImpl.createProcessInstanceTask(Unknown Source)
         at oracle.bpm.services.instancemanagement.ejb.InstanceManagementServiceBean_sqa2w0_IInstanceManagementServiceRemoteImpl_WLSkel.invoke(Unknown Source)
         at weblogic.rmi.internal.BasicServerRef.invoke(BasicServerRef.java:667)
         at weblogic.rmi.cluster.ClusterableServerRef.invoke(ClusterableServerRef.java:230)
         at weblogic.rmi.internal.BasicServerRef$1.run(BasicServerRef.java:522)
         at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:363)
         at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:146)
         at weblogic.rmi.internal.BasicServerRef.handleRequest(BasicServerRef.java:518)
         at weblogic.rmi.internal.wls.WLSExecuteRequest.run(WLSExecuteRequest.java:118)
         at weblogic.work.ExecuteThread.execute(ExecuteThread.java:209)
         at weblogic.work.ExecuteThread.run(ExecuteThread.java:178)
    javax.ejb.EJBException: EJB Exception: ; nested exception is:
         java.lang.RuntimeException: bad composite child dn: 343; nested exception is: java.lang.RuntimeException: bad composite child dn: 343
         at weblogic.ejb.container.internal.RemoteBusinessIntfProxy.unwrapRemoteException(RemoteBusinessIntfProxy.java:121)
         at weblogic.ejb.container.internal.RemoteBusinessIntfProxy.invoke(RemoteBusinessIntfProxy.java:96)
         at $Proxy16.createProcessInstanceTask(Unknown Source)
         at com.test.TestSample.main(TestSample.java:77)
    Caused by: java.lang.RuntimeException: bad composite child dn: 343
         at oracle.soa.management.CompositeChildDN.<init>(CompositeChildDN.java:67)
         at oracle.soa.management.ComponentDN.<init>(ComponentDN.java:38)
         at oracle.bpm.services.instancemanagement.impl.InstanceManagementService.createProcessInstanceTask(InstanceManagementService.java:207)
         at sun.reflect.GeneratedMethodAccessor10053.invoke(Unknown Source)
         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
         at java.lang.reflect.Method.invoke(Method.java:597)
         at org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:307)
         at org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:182)
         at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:149)
         at oracle.bpel.services.workflow.common.WorkflowServiceCacheEventAdvice.invoke(WorkflowServiceCacheEventAdvice.java:91)
         at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:171)
         at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:204)
         at $Proxy232.createProcessInstanceTask(Unknown Source)
         at oracle.bpm.services.instancemanagement.ejb.InstanceManagementServiceBean.createProcessInstanceTask(InstanceManagementServiceBean.java:112)
         at sun.reflect.GeneratedMethodAccessor10052.invoke(Unknown Source)
         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
         at java.lang.reflect.Method.invoke(Method.java:597)
         at com.bea.core.repackaged.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:310)
         at com.bea.core.repackaged.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:182)
         at com.bea.core.repackaged.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:149)
         at com.bea.core.repackaged.springframework.aop.support.DelegatingIntroductionInterceptor.doProceed(DelegatingIntroductionInterceptor.java:131)
         at com.bea.core.repackaged.springframework.aop.support.DelegatingIntroductionInterceptor.invoke(DelegatingIntroductionInterceptor.java:119)
         at com.bea.core.repackaged.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:171)
         at com.bea.core.repackaged.springframework.jee.spi.MethodInvocationVisitorImpl.visit(MethodInvocationVisitorImpl.java:37)
         at weblogic.ejb.container.injection.EnvironmentInterceptorCallbackImpl.callback(EnvironmentInterceptorCallbackImpl.java:54)
         at com.bea.core.repackaged.springframework.jee.spi.EnvironmentInterceptor.invoke(EnvironmentInterceptor.java:50)
         at com.bea.core.repackaged.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:171)
         at com.bea.core.repackaged.springframework.aop.interceptor.ExposeInvocationInterceptor.invoke(ExposeInvocationInterceptor.java:89)
         at com.bea.core.repackaged.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:171)
         at com.bea.core.repackaged.springframework.aop.support.DelegatingIntroductionInterceptor.doProceed(DelegatingIntroductionInterceptor.java:131)
         at com.bea.core.repackaged.springframework.aop.support.DelegatingIntroductionInterceptor.invoke(DelegatingIntroductionInterceptor.java:119)
         at com.bea.core.repackaged.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:171)
         at com.bea.core.repackaged.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:204)
         at $Proxy258.createProcessInstanceTask(Unknown Source)
         at oracle.bpm.services.instancemanagement.ejb.InstanceManagementServiceBean_sqa2w0_IInstanceManagementServiceRemoteImpl.__WL_invoke(Unknown Source)
         at weblogic.ejb.container.internal.SessionRemoteMethodInvoker.invoke(SessionRemoteMethodInvoker.java:40)
         at oracle.bpm.services.instancemanagement.ejb.InstanceManagementServiceBean_sqa2w0_IInstanceManagementServiceRemoteImpl.createProcessInstanceTask(Unknown Source)
         at oracle.bpm.services.instancemanagement.ejb.InstanceManagementServiceBean_sqa2w0_IInstanceManagementServiceRemoteImpl_WLSkel.invoke(Unknown Source)
         at weblogic.rmi.internal.BasicServerRef.invoke(BasicServerRef.java:667)
         at weblogic.rmi.cluster.ClusterableServerRef.invoke(ClusterableServerRef.java:230)
         at weblogic.rmi.internal.BasicServerRef$1.run(BasicServerRef.java:522)
         at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:363)
         at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:146)
         at weblogic.rmi.internal.BasicServerRef.handleRequest(BasicServerRef.java:518)
         at weblogic.rmi.internal.wls.WLSExecuteRequest.run(WLSExecuteRequest.java:118)
         at weblogic.work.ExecuteThread.execute(ExecuteThread.java:209)
         at weblogic.work.ExecuteThread.run(ExecuteThread.java:178)
    Edited by: 967671 on Oct 25, 2012 7:58 AM

  • How to create a process instance from PAPI Web Services

    Hi,
    I use Jdev 11g to create ADF(PAPI web service) to create new instances of BPM processes running in BPM Standalone (10g). However, I do not know how to write the code.
    Could any people paste the sample code for me?
    Thank you very much!
    papiWebServicePort.processCreateInstance(String, String, Holder<ArgumentBean>, Holder<instanceInfoBean>)

    import java.net.MalformedURLException;
    import java.rmi.RemoteException;
    import javax.xml.rpc.ServiceException;
    import com.bea.albpm.PapiWebService.OperationException;
    public class CreateInstances {
         public static void main(String[] args) throws MalformedURLException, ServiceException, OperationException, RemoteException {
              java.net.URL url = null;
              org.apache.axis.EngineConfiguration config = null;
              com.bea.albpm.PapiWebService.PapiWebServicePortBindingStub binding = null;
              com.bea.albpm.PapiWebService.InstanceInfoBean value = null;
              //String processId = "/Proceso1";
              //String processId = "/ActividadesExternas";
              String processId = "/PAPIWS";
              String argumentsSetName = "BeginIn";
              //Binding
              //url = new java.net.URL("http", "localhost", 8686, "/papiws/PapiWebServiceEndpoint");
              url = new java.net.URL("http", "localhost", 8585, "/papiws/PapiWebServiceEndpoint");
              config = new org.apache.axis.configuration.FileProvider("client_deploy.wsdd");
    binding = (com.bea.albpm.PapiWebService.PapiWebServicePortBindingStub) new com.bea.albpm.PapiWebService.PapiWebService_ServiceLocator(config).getPapiWebServicePort(url);
    binding.setTimeout(60000);
    //Arguments
    com.bea.albpm.PapiWebService.ArgumentsBeanArgumentsEntry argumentsBeanArgumentsEntry[] = new com.bea.albpm.PapiWebService.ArgumentsBeanArgumentsEntry[1];
    argumentsBeanArgumentsEntry[0] = new com.bea.albpm.PapiWebService.ArgumentsBeanArgumentsEntry();
    argumentsBeanArgumentsEntry[0].setKey("entradaArg");
    argumentsBeanArgumentsEntry[0].setValue("Instancia creada de forma externa mediante PAPI-WS 2.0");
    com.bea.albpm.PapiWebService.ArgumentsBean argumentsBean = new com.bea.albpm.PapiWebService.ArgumentsBean(argumentsBeanArgumentsEntry);
    com.bea.albpm.PapiWebService.holders.ArgumentsBeanHolder argumentsBeanHolder = new com.bea.albpm.PapiWebService.holders.ArgumentsBeanHolder(argumentsBean);
    //Create instance
    value = binding.processCreateInstance(processId, argumentsSetName, argumentsBeanHolder);
    System.out.println("Created instance -> InstanceInfo.id = " + value.getId());
         }

  • Process instance creation on 5.5 from a process A to a process B Dif engine

    Process Instance creation on 5.5 from a Process A to a Process B on different engine.
    I have 5.5 enterprise with 2 engines.
    I want to create a process instance from process a to process b
    this is the example that is working if processes are deployed on the same engine
    argumentos = this.buildInstanceArgs(arg_processID : AltaDeCuentas, arg_xmlObj : xmlObj);
    suc = suc + "/AltaDeCuentasSucursales";
    ProcessInstance.create(processId : suc, arguments : argumentos, argumentsSetName : "BeginIn");
    break;
    This example uses the OU and the process id I also need to set the engine where the process is deployed
    Thanks In advance!
    Nico

    Hi, just an update, at least now I have an error message on the first button,
    there was a condition that I left over preventing it to work,
    I have also amended the JavaScript code removing " from the "dataType"
    Its now
    function PrintSelectedItems()
    var r = confirm("In print selected items");
    apex.server.process('DISPLAY_SELECTED_ITEMS',
    {"x01": "Sent from Page 5",
    dataType: "text"},
    {success: function(data){alert("here->" + data);}}
    and I get Error: parsererror - SyntaxError: JSON.parse: unexpected character

  • Error "Could not retrieve process instance" w UWL-GP thru Load Balancer

    Hi,
    We're using NW'04s EP SP14 for developing our portal website. An external load balancer balances the load between two portal instances CI & DI.
    We are getting an Exception "Could not retrieve process instance: contact your system administrator" when we try to access the UWL Requests through the Load Balancer though it is working fine with the direct HostName in the URL.
    SAP Note 1026119 did not solve the issue.
    Has anyone faced such an issue before?
    Thanks.

    Hi
    I am getting the same error, but when i tried to retrieve the process instance from nwa I see the process instance to be missing. I could not trace the process instance.
    Can you please tell me where else can i look for the process instance.
    Its very urgent
    Thanks and Regards
    Anitha

  • Mirgating Process Instances Programatically

    Hi all,
    I have a scenario to migrate process instances from one version to another. Manual Process Migration is a tedious process when comes to large instances. I'm trying to automate this migration process.
    I found this IInstanceManagementService Interface but I don't know how to use it. Is there any way to use these JAR's, or is there any scripts to do this. I'm looking forward to use this JAR oracle.bpm.services.instancemanagement --> migrateMultipleInstances.
    Can anyone throw some limelight on this issue.
    Two Cents,
    Karthick G

    The documentation about instance migration is in the 11.1.1.7 Administrators Guide is here: http://docs.oracle.com/cd/E28280_01/admin.1111/e10226/soacompapp_mang.htm#CEGDBAAE
    Hope this helps,
    Dan

  • Canceling a Process Instance in Process Workspace

    Hi
    I need to provide Admin User a functionality to Cancel a process Instance.
    As per the section 4.5 of User's Guide for Oracle Business Process Management 11g Release1 (11.1.1.6.1) E 15175-07, the Process Owner can Cancel the Process Instance from Process Tracking page.
    I tried by mapping the Admin User with ProcessOwner role, but it didn't work. I can see only Alter Flow in the Actions tab.
    Did any one else came across this issue.
    Please let me know if I am missing some thing in here.
    Thanks

    Is the password oc4jadmin's password? Today, I've gotten ServerAuthFactory to work with oc4jadmin's credentials.
    if this is true... in an environment where me as a developer doesn't have the password for oc4jadmin, how can I use this API? Frankly, my system administrator will not give it to me. I had to turn my head away while he typed it into my code, just to test this.
    Is there a list of EJB's I need to get access to for another account other than oc4jadmin?
    Any help would be greatly appreciated.
    Dan

  • How to pass process instance id to callable object?

    Hello,
    using the SAP NetWeaver CE 7.1 EhP 1 SP 2 I have modeled a small approval workflow with Guided Procedures.
    At runtime, I want to pass the id of the running process instance to a callable object (WD4VC composite view). Is this possible and how?
    Alternatively, is there any way to fetch the id of the current process instance from withina WD4VC composite view?
    Kind regards
    Alexander

    Hi,
    I hope you have executionContext in callable object.
    You can get the ProcessID by calling function "executionContext.getProcessId()".
    Regards,
    Niraj

  • Process instances terminate upon application redeployment

    Hello all,
    I have been trying to find an answer for this question in the forums, but to no result.
    I have created a proof-of-concept process and deployed it on the server. The process works just fine, containing Client Request controls, creating Tasks etc.
    The problem is when, during development, I make some change in some helper class or the procees itself and redeploy the application. Even when I just rebuild/redeploy w/o any changes.
    Then, any running process instances (e.g. blocked, waiting for a Client Response or a Task onComplete) are terminated w/o any message, at least not a message that I can see.
    Is this a "feature" or have I forgotten to setup something correctly?
    If this is a feature, why aren't the open Task Controls also terminated, like the process instances that created them are?
    How can I prevent the process instances from being auto-terminated upon application redeployment?
    My process' properties:
    - freeze on failure: true
    - persistent: always
    - on sync failure: rethrow
    - retry count: 1
    - retry delay: <empty>
    - stateless: false
    - binding: webservice
    - version strategy: loosely coupled
    My configuration:
    - Weblogic Integration 8.5 SP6
    - Weblogic Server 8.1 SP6
    - Back-end DB: the default DB server, that comes with the BEA installation
    I would greatly appreciate any help/suggestions/links, as I find this feature/error very frustrating.
    My apologies if this has already been answered before.
    Thank you for your time,
    S.

    OK, to answer my own question.
    It was not a "problem", but a "feature".
    I had the server starting in development mode, so by default process instances are terminated upon redeployment.
    Editing the setDomainEnv.cmd and setting
    set PRODUCTION_MODE=true
    solved my "problem".
    Hope this helps s/o in the future.

  • How to look for duplicate process instances?

    In Oracle BPM 11g, is there a good way to look for duplicate process instances based on process data attributes? For example, I have entered an instance of a process for 'John Smith' with a date of '4/1/2010' and I want to see if there is another instance in the same process with these same data values to evaluate as a potential duplicate. I believe we can write a java service to invoke the API to do this, but I am wondering if there is a better way within the process design to do this (XPath extension functions or soemthing?). It seems like this would be a common need.

    I am really looking for an approach to looking for duplicate instances within my process flow, not from EM. So, if the user starts a new instance of a process, I can check for another instance that appears to be a duplicate and direct the flow to a human activity to review the potential duplicate and make a decision as to whether to continue processing the new instance or reject it. My guess is that we need to us a service task to invoke java code which uses the API to investigate other instances with the same values. But, I was hoping for a simpler solution....I have to think that this is not too uncommon.

  • How to Identify GP Process ID from Process Instance ID

    Hi,
    I am retrieving the running process instances using following method.
    IGPProcessInstanceInfo[] runningInstances =
                        runtimeManager.getRunningInstances(
                             GPSearchRole.SEARCH_ROLE_OVERSEER,
                             fromDate,
                             toDate,
                             userContext);
    I need to choose only the process instances of one particular process (I have process id of this GP). From the IGPProcessInstanceInfo object I can get the Process Instance ID. But I am not finding any API to findout the Process ID (not process instance id) of this process instance.
    Once I get the process id, I can compare the process ids and decide whether it is related to my process or not.
    Is there a way to find this information?
    Thanks
    Ram

    Hi Ram,
    the ID you have there is a String variable in the template <TemplateID>a<ProcessID>.
    I guess you are looking for a process template, so you can split that String by "a" and use the first Int and then compare that Int.
    Hope that helps.
    Regards,
    George.

  • Searching task from API by process instance id

    Hi, I am having problem retrieving tasks by process instance id throught API.
    I've look at the help, http://help.adobe.com/en_US/livecycle/9.0/programLC/help/index.html,
    it got sample code to retrieve tasks, it retrieve all tasks by process name, but I need to retrieve only tasks belong to a process instance id.
    how can i achieve this? any help is appreciated, thanks.
    hkho

    The following code may retrieve the tasks for a specific process instance.
    ServiceClientFactory myFactory = ServiceClientFactory.createInstance(connectionProps);
    TaskManagerQueryService queryManager = TaskManagerClientFactory.getQueryManager(myFactory);
    TaskSearchFilter filter = new TaskSearchFilter();
    filter.setServiceName("MortgageLoan - Prebuilt");
    filter.addCondition("procVar.id", Operator.EQUALS, new Long(556677)); // where 556677 is your process Instance Id
    filter.setAdminIgnoreAllAcls(true);
    List result = queryManager.taskSearch(filter);
    Note:
      -> I dint test this code;
      -> You may have to make some corrections if its not working
      -> The code is based on Java API (Not Web Service)
    Nith

  • How to get child process instance id from main process

    Hi All,
    I have a main process invoiking a child process 1 and child process 1 inturn calling child process 2.Is there any way to get the child process 2 instance id from main process or main process instance id from child process 2.. Using tree finder in BPEL Control i can find the direct sub process(child 1) instance id from the main process instance. Is it possible to trace Sub process 2 instance id without going for the instance detail of sub process 1.
    Thanks in advance
    ChitraDevi

    you could easily derive this from the bpel cube_instance table. using cikey and parent_id columns. you can use IInstanceMetaData javadoc, it has method called getParentId( ) to get the id. you can get the root id (instance-id of the main bpel process instance) using getRootId( ). you can checkout this blog.
    http://tech-sash.blogspot.com/2008/04/oracle-soa-suite-retrieving-process.html

Maybe you are looking for

  • Tomcat problem

    Hi, my problem is that after installing apache-tomcat-5.5.17.exe in xp, When i write http://localhost:8080/ in internet explorer after starting tomcat then it shows following error: error requested url could not retrieved While trying to retrieve the

  • Fraudulent charges from Premium text messaging  company

    Has anyone had to deal with guessology.com and their deceptive surveys? Just had an encounter where they attached an unathorized survey to facebook. The claim was they were doing the survey for facebooks 6th anniversary and they were offering prizes.

  • Videos and sms pictures.

    I REALLY LOVE MY PHONE. BUT THERE A FEW THINGS I WOULD LIKE SEE HAPPEN. I HAD A BLACKBERRY PEARL WELL A FEW OF THEM AND ONE BLACKBERRY CURVE THATS WHY IM THREW WITH THEM. NOW THEY DO HAVE THE IPHONE BEAT ON ONE THING. AND THAT IS SENDING PICTURES. NO

  • Can´t login after reboot ?

    My MacBook Pro went in to reboot and when it starts up I can choose between "My usersname" or "Guest", but when I click on "My username" it just keep loading a bit and then show the Mac Stop sign. I can log in as guest and log in trough Coomand+R, bu

  • Re-install Photoshop elements 2.0

    I've owned and used Adobe Photoshop Elements 2.0 for years until Norton Antivirus un-installed it. All I want to do now is re-install it and it will not let me.  Please help me...