Couldn't get Asynchronous process instance

Hi,
i am calling one Asynchronouse process from my queue listener process. The listener is calling the asynchronous process.But could see Async process instance in the instanceses tab of BPELConsole.
can any one please help me in this ...
when i invoked the Asynch process directly some times got invoked and could see the flow. But some times getting tryAgain link.. while trying again getting the same page again and again.
what is the reasone where am not correct in asynch process ?
Regards,
Bogi.

Did you set the loglevel to debug and verified the logfile?

Similar Messages

  • Get the Process Instance as a process variable

    Hi,
    is there a way on a Workflow Process to get the process instance in order to save it as a process variable (and then store it via a backend call).
    In other words: I have many processes designed via NWDS Process Composer and I'd like to get the process instance ID in order to save it for faster retrieval of the process in the NWA's Manage Process application.
    Thank you,
    Pietro.

    Does it work if the process instance is already created?
    Can you give me an example?
    I've put as the first step of every workflow a callback method that is executed that calls an RFC to confirm, backend-side, that the process has been created.

  • How to get the process instance key so as to retry a rejected task through api while ad provisoing?

    Hi All,
    How to get the process instance key so as to retry a rejected task through API while AD provisioing state?
    API URL - http://docs.oracle.com/cd/E27559_01/apirefs.1112/e28159/toc.htm
    Thanks

    To retry a task that is in a rejected state, you use the SCH_KEY which is the task key.  In OIM, all rejected tasks are listed in the OTI table.  It contains all the important information about a rejected or pending task.
    You can use the APIs found in the tcProvisioningOperationsIntf class to retrieve open tasks.
    -Kevin

  • 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

  • Get the process instance ID

    Hey,
    I've build a Process DC with subprocesses. I would like to retrieve my process instance ID, this way, when I am in a subprocess, I could still put a link to the diagram of the main process !
    Does anyone have any idea how to obtain it ?
    Any help would be appreciated!

    Hi Lynne,
    another question. Did you get the funtion "sendNotification()" running? At line push.pushSharedItem(procon, item, users); I get the error "null null"
    I already checked objects and they seems to be created correct. Might there be any attribute wrong due to the fact that this example is originally for CE 7.0?
    //Setup connection
    IUWLService uwlService = findService();
    final int sessionIdleTimeout = 60;
    UWLContext uwlContext = new UWLContext();
    IWDClientUser clientUser;
    clientUser = WDClientUser.getLoggedInClientUser();
    IUser user = clientUser.getSAPUser();
    uwlContext.setUser(user);
    uwlContext.setLocale(Locale.getDefault());
    IUWLSession uwlSession;
    uwlSession = uwlService.beginSession(uwlContext, sessionIdleTimeout);
    uwlContext.setSession(uwlSession);
    IUWLItemManager itemManager = uwlService.getItemManager(uwlContext);
    //Setup provider conn
    IPushChannel push = uwlService.getPushChannel();
    IProviderConnector procon = uwlService.getRegisterProviderConnector(IProviderConnector.ADHOC_WORKFLOW_CONNECTOR_ID);
    IUserFactory usf = UMFactory.getUserFactory();
    IUser sendToUser = usf.getUserByLogonID(wdContext.nodeNotifData().currentNotifDataElement().getUserId());
    //Setup item
    Item item = new Item(IProviderConnector.ADHOC_WORKFLOW_CONNECTOR_ID,IProviderConnector.ADHOC_WORKFLOW_SYSTEM, "" + new Date().getTime(), sendToUser.getUniqueID());
    item.setUser(sendToUser.getUniqueID());
    item.setSubject(wdContext.nodeNotifData().currentNotifDataElement().getSubject());
    item.setDescription(wdContext.nodeNotifData().currentNotifDataElement().getDescription());
    item.setItemType(ItemType.UWL_ITEM_NOTIFICATION);
    item.setCreatedDate(new Date());
    // item.setDueDate(new Date());
    item.setCreatorId(user.getUniqueID());
    item.setStatus(StatusEnum.NEW);
    item.setCompletedDate(new Date());
    // External Type is used to filter the notifications according to
    // application
    item.setExternalType("UWLNotification");
    //Send item
    Set users = new HashSet();
    users.add(sendToUser.getUniqueID());
    // users.add("USER.PRIVATE_DATASOURCE.un:testuser1");
    push.pushSharedItem(procon, item, users);
    wdComponentAPI.getMessageManager().reportSuccess("Notification Sent");
    Regards

  • How to get parent process instance id in a java control?

    Hi!
    I have a process which invoke a java control.
    In this java control I need the instance ID from the parent process.
    Does anybody know where i can get the instance id?
    Within a jpd I have the context variable (context.getInstanceId()), but I need something like this in the control
    Thanks
    Ben

    the only way you can do is aquire the instanceid in the JDP itself and pass it to the java control as a paramter.

  • Raised GPEngineException when runtime get the process instance

    Dear Ladies/Gentlemen:
    I have developped a guided procedure process, it pop up GPEngineException when it met the code like below.
    IUser userCurrentProcessorLogonID = UMFactory.getUserFactory().getUserByLogonID(wdUser.getSAPUser().getName());
    IGPUserContext currentProcessor = GPContextFactory.getContextManager().createUserContext(userCurrentProcessorLogonID);
    IGPProcessInstance lvProcessInt = rtm.getProcessInstance(processID,currentProcessor);
    I make sure the processID and userContext as parameters passed into rtm.getProcessInstance correctly.
    But I have no idea why it always pop up GPEngineException
    Hopfully you can help me.
    Thank you greatly.
    Regards
    Eric

    Hi,
    This could be the case if the current logged in user is not assigned the role in process or does not have the permission.
    Check in the logs(NWA) for exact problem. Also share the exception message.
    Refer below link for correct usage of gp API.
    https://cw.sdn.sap.com/cw/docs/DOC-113889
    Regards
    Deepak

  • How to get process instance id

    Hi,
    We are invoking a long lived process from a client using Java API (EJB end point).
    We are getting the JobId in return. Is there a way to get the process instance Id through API.
    Searched a lot in the documentation. Finally inclining to query the table directlyTB_PROCESS_INSTANCE  on LONG_LIVED_INVOCATION_ID.
    Appreciate a lot if any expert point us to an API way of doing the same

    We have tried to use the following approach to get process instance id right after invoking a process.
    - Define an OUT process variable to contain process id
    - A set value step right after invocation sets this out variable with process id variable value which is available by default
    - InvocationResponse.getOutputParameters() to read the output variable
    The problem is in the map returned by getOutputParameters() is not having our output variable , but just the JobId.
    Anyone tried this before? Are we missing sometiing?
    Any expert help is highly appreciated..

  • How to get the activity instance id and process id

    Dear All,
    For my case, my boss require the workflow program processor can be runtime assigned . After research, I found the coding example like below:
    // dynamically assign a user to a role
    rtm.addRuntimeDefinedUserToRole(
                      // process instance
                      prInstance,
                      // role name
                      "Processor",
                      // user that is assigned (IUser)
                      user,
                      // user context (IGPUserContext)
                      userContext);
    // dynamically change the user assigned to a role for a particular task
    String prInstanceID = prInstance.getID();
    rtm.changeTaskProcessor(
                      // process instance ID
                      prInstanceID,
                      // activity instance ID
                      activityInstanceID,
                      // current user (IGPUserContext)
                      currentProcessorContext,
                      // new user (IGPUserContext)
                      newProcessorContext);
    But I don't know how to get the process instance ID and activity instance ID before I can apply this api in my webdynpro application.
    Any gentllement can give me an idea.
    Thank you.
    Regards
    Eric

    process =  GPProcessFactory.getDesigntimeManager().getActiveTemplate(
                                  // by specifying its ID "CCD2C3F1BED111DD9DFA005056A9416C",/
                                                 /* and the user accessing it */ userContext);
         //          retrieve the Runtime Manager
         IGPRuntimeManager rtm = GPProcessFactory.getRuntimeManager();
         // create an empty role assignment list
         IGPProcessRoleInstanceList roles = rtm.createProcessRoleInstanceList();
         //Initialising the input params
         IGPStructure params =GPStructureFactory.getStructure(process.getInputParameters());
         params.setAttributeValue("Name",value);
         //Starting the process
         IGPProcessInstance prInstance = rtm.startProcess(process,"Process Name","Process name",user,roles,params,user);

  • 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.

  • To fetch process instance key for Modify Provisioned Resource while request

    Hi,
    I am trying "Self Modify Provisioned Resource" through Request and multiple resource object is assigned to the user.I have a requirement to a develop validator code to compare old data and request data and take action accordingly.How to get the Process Instance Key or OIU Key of the resource w.r.t user, so that i can compare the data entered in dataset to the data in process form and do the modify operation accordingly.
    I am working on OIM 11.1.1.5 version and have applied BP03 patch also.
    -Neha Gupta
    Edited by: 912833 on Sep 11, 2012 2:26 AM
    Edited by: 912833 on Sep 11, 2012 2:28 AM

    More or less you can use the following:
    resultGetObjects = userOperationsIntf.getObjects(plUserKey);
                int countResultGetObjects = resultGetObjects.getRowCount();
                logger.debug("CommonProvisioning.updateProcessForm Object Count = " + countResultGetObjects);
                for (int j = countResultGetObjects; --j >= 0;) {
                    resultGetObjects.goToRow(j);
                    String objName = resultGetObjects.getStringValue("Objects.Name");
                    String status = resultGetObjects .getStringValue("Objects.Object Status.Status");
                    if (resourceObjName.equalsIgnoreCase(objName) && "Provisioned".equalsIgnoreCase(status)) {
                        prntPrvsndPrsInsKey = resultGetObjects .getLongValue("Process Instance.Key");
                         break;
                }HTH,
    BB

  • Finding PeopleSoft Process Instance using Oracle session info

    Hi:
    I'm on Oracle 10.2.0.3 and PeopleSoft Financials 8.9.
    Does anybody know how to get PeopleSoft Process Instance using v$session, v$process and other info?
    TIA.

    Hey Sybrand,
    Thanks for your reply.
    I am actually a dba trying to help PeopleSoft developers. The question is on the edge between Oracle & PeopleSoft. And yes, I took a close look at v$session. It shows Oracle Session info while Process Instance is a PeopleSoft identifier sitting in PSPRCSRQST table. I intuitively feel that there should be a database-level connection between the two.
    All ideas appreciated.
    I hope they will show PI in v$session in subsequent versions of Oracle...

  • Getting Process instance with key '0' does not exist.

    I am doing a request based provisioning task.When I request for a resource the approvers are able to approve the request but the user is not created.
    I am getting the below exception at the backend:-
    [XELLERATE.APIS],Class/Method: tcProvisioningOperationsBean/getProcessDetailData encounter some problems: Process instance with key '0' does not exist.
    [11/2/12 0:30:13:640 EDT] 00000097 SystemOut O ERROR,02 Nov 2012 00:30:13,639,[XELLERATE.WEBAPP],Class/Method: RequestApprovalDetailAction/requestDetail encounter some problems: Process instance with key '0' does not exist.
    Thor.API.Exceptions.tcAPIException: Process instance with key '0' does not exist.
         at com.thortech.xl.ejb.beansimpl.tcProvisioningOperationsBean.getProcessDetailData(Unknown Source)
         at com.thortech.xl.ejb.beansimpl.tcProvisioningOperationsBean.getProcessDetail(Unknown Source)
         at com.thortech.xl.ejb.beans.tcProvisioningOperationsSession.getProcessDetail(Unknown Source)
         at com.thortech.xl.ejb.interfaces.EJSRemoteStatelesstcProvisioningOperations_6b2f800a.getProcessDetail(Unknown Source)
         at com.thortech.xl.ejb.interfaces._tcProvisioningOperations_Stub.getProcessDetail(Unknown Source)
         at Thor.API.Operations.tcProvisioningOperationsClient.getProcessDetail(Unknown Source)
         at sun.reflect.GeneratedMethodAccessor309.invoke(Unknown Source)
         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
         at java.lang.reflect.Method.invoke(Method.java:585)
         at Thor.API.Base.SecurityInvocationHandler$1.run(Unknown Source)
         at java.security.AccessController.doPrivileged(Native Method)
         at javax.security.auth.Subject.doAs(Subject.java:337)
         at com.ibm.websphere.security.auth.WSSubject.doAs(WSSubject.java:118)
         at Thor.API.Security.LoginHandler.websphereLoginSession.runAs(Unknown Source)
         at Thor.API.Base.SecurityInvocationHandler.invoke(Unknown Source)
         at $Proxy6.getProcessDetail(Unknown Source)
         at com.thortech.xl.webclient.actions.RequestApprovalDetailAction.setStandardApprovalDetail(Unknown Source)
         at com.thortech.xl.webclient.actions.RequestApprovalDetailAction.requestDetail(Unknown Source)
         at sun.reflect.GeneratedMethodAccessor665.invoke(Unknown Source)
         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
         at java.lang.reflect.Method.invoke(Method.java:585)
         at org.apache.struts.actions.DispatchAction.dispatchMethod(DispatchAction.java:280)
         at com.thortech.xl.webclient.actions.tcLookupDispatchAction.execute(Unknown Source)
         at com.thortech.xl.webclient.actions.tcActionBase.execute(Unknown Source)
         at com.thortech.xl.webclient.actions.tcAction.execute(Unknown Source)
         at org.apache.struts.action.RequestProcessor.processActionPerform(RequestProcessor.java:484)
         at org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:274)
         at org.apache.struts.action.ActionServlet.process(ActionServlet.java:1482)
         at org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:525)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:763)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:856)
         at com.ibm.ws.webcontainer.servlet.ServletWrapper.service(ServletWrapper.java:1096)
         at com.ibm.ws.webcontainer.servlet.ServletWrapper.service(ServletWrapper.java:1037)
         at com.ibm.ws.webcontainer.filter.WebAppFilterChain.doFilter(WebAppFilterChain.java:145)
         at com.thortech.xl.webclient.security.CSRFFilter.doFilter(Unknown Source)
         at com.ibm.ws.webcontainer.filter.FilterInstanceWrapper.doFilter(FilterInstanceWrapper.java:190)
         at com.ibm.ws.webcontainer.filter.WebAppFilterChain.doFilter(WebAppFilterChain.java:130)
         at com.thortech.xl.webclient.security.SecurityFilter.doFilter(Unknown Source)
         at com.ibm.ws.webcontainer.filter.FilterInstanceWrapper.doFilter(FilterInstanceWrapper.java:190)
         at com.ibm.ws.webcontainer.filter.WebAppFilterChain.doFilter(WebAppFilterChain.java:130)
         at com.ibm.ws.webcontainer.filter.WebAppFilterChain._doFilter(WebAppFilterChain.java:87)
         at com.ibm.ws.webcontainer.filter.WebAppFilterManager.doFilter(WebAppFilterManager.java:832)
         at com.ibm.ws.webcontainer.filter.WebAppFilterManager.doFilter(WebAppFilterManager.java:679)
         at com.ibm.ws.webcontainer.servlet.ServletWrapper.handleRequest(ServletWrapper.java:566)
         at com.ibm.ws.wswebcontainer.servlet.ServletWrapper.handleRequest(ServletWrapper.java:478)
         at com.ibm.ws.webcontainer.servlet.CacheServletWrapper.handleRequest(CacheServletWrapper.java:90)
         at com.ibm.ws.webcontainer.WebContainer.handleRequest(WebContainer.java:748)
         at com.ibm.ws.wswebcontainer.WebContainer.handleRequest(WebContainer.java:1466)
         at com.ibm.ws.webcontainer.channel.WCChannelLink.ready(WCChannelLink.java:119)
         at com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.handleDiscrimination(HttpInboundLink.java:458)
         at com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.handleNewInformation(HttpInboundLink.java:387)
         at com.ibm.ws.http.channel.inbound.impl.HttpICLReadCallback.complete(HttpICLReadCallback.java:102)
         at com.ibm.ws.ssl.channel.impl.SSLReadServiceContext$SSLReadCompletedCallback.complete(SSLReadServiceContext.java:1818)
         at com.ibm.ws.tcp.channel.impl.AioReadCompletionListener.futureCompleted(AioReadCompletionListener.java:165)
         at com.ibm.io.async.AbstractAsyncFuture.invokeCallback(AbstractAsyncFuture.java:217)
         at com.ibm.io.async.AsyncChannelFuture.fireCompletionActions(AsyncChannelFuture.java:161)
         at com.ibm.io.async.AsyncFuture.completed(AsyncFuture.java:136)
         at com.ibm.io.async.ResultHandler.complete(ResultHandler.java:195)
         at com.ibm.io.async.ResultHandler.runEventProcessingLoop(ResultHandler.java:743)
         at com.ibm.io.async.ResultHandler$2.run(ResultHandler.java:873)

    Process instance with key '0' does not exist
    Such issue typically appears when the Provisioning is initiated without "Auto Save" i.e. before ORC_KEY entry goes in the OIU table...
    Second possibility can be that the mandatory attributes in the process form are not populated..
    Third possibility can be that the Status is Waiting... And Resource is dependent on another Resource...
    Are you able to Direct Provision the account? I mean without raising Request Based provisioning?
    Please give us following details:
    (1) Resource Profile:-status of Auto Save
    (2) Approval Process:- status of Auto Save and Auto Pre-Pop
    (3) Prov Process:-status of Auto Save and Auto Pre-Pop.
    (4) Is the object form properly populated?
    (5) Is the Process form properly populated?
    (6) Any Exception occurred during Approval process?
    (6) In the OIM Database, fire the following query:-
    SELECT OIU.ORC_KEY
    FROM OIU, USR, OBI
    WHERE OIU.USR_KEY=USR.USR_KEY
    AND UPPER(USR.USR_LOGIN)=UPPER('ABCDEFGH_USER')
    AND OBI.OBI_KEY=OIU.OBI_KEY
    AND OBI.OBI_KEY IN (SELECT OBI.OBI_KEY FROM OBI,OBJ WHERE OBI.OBJ_KEY=OBJ.OBJ_KEY AND
    UPPER(OBJ.OBJ_NAME)=UPPER('AD USER'))
    This will show whether any proper ORC_KEY was generated for this resource instance..

  • Getting Process Instance Information and Task Properties in a process

    Iam using WebLogic8.1 Integration BPM feature. I've designed a Worklist based application.
    In the business process, i've to call a java class method from the business process
    which takes the process instance and task related properties (viz. the task id,
    task name, the current actor etc.). How could i supply these values from within
    a business process.
    Regards
    Raja V.

    You can get the task infromation by calling the task control method TeskInfo getTaskInfo()
    "raja v" <[email protected]> wrote:
    >
    Iam using WebLogic8.1 Integration BPM feature. I've designed a Worklist
    based application.
    In the business process, i've to call a java class method from the business
    process
    which takes the process instance and task related properties (viz. the
    task id,
    task name, the current actor etc.). How could i supply these values from
    within
    a business process.
    Regards
    Raja V.

  • GP :How to get only those WorkItems for a particular Process Instance ID

    Hi,
    I have to get only those work items for a particular Process Instance ID.
    Currently I am able to get all gp workitems of a status, for a user.
    IGPUserContext userContext = GPContextFactory.getContextManager().createUserContext(epUser1);
                   IGPWorkItem[] openItems = rtm.getWorkItems(GPWorkItemStatus.WORKITEM_STATUS_OPEN, userContext);
    Now I want to get the gp  work items for a particualr process instance ID. Is it possible?
    Please help me.
    Thanks and regards
    Smitha

    Hi Smitha,
    Can you share with us how did you solve your problem?
    I also encountered the same requirement.
    Ashish

Maybe you are looking for