Fetching process details using process instance id

Hi,
I have process instance ids captured in a CE table and I am looking to include a feature in existing UI5 application to use the process instance id and fetch it' s corresponding process details like history, context data etc., back to UI.
Any helpfull doc/ ideas on how to implement this will be appreciated.
Thanks,
Vipin.

Hi Jun,
I didn' t get a chance to try on process histroy however with the responses seen here looks like it is not possible.
Currently I am able to get the task details like the claimed user, list of potential users yet to claim the task etc., which is still usefull in my case.

Similar Messages

  • Getting completed process details using BPM API

    Hi Experts,
    is there any way to get the completed process details using BPM API or Analytics API for a specific process definition (in 7.31 SP10)?
    my observations:
    1. using getRunningProcessInstances(process_def_id) of ProcessInstanceManager, I can fetch running process instances.
    but I need completed process instances.
    Thanks in advance.
    Best Regards
    -Trim

    seems no way

  • Trigger informatica work flow using process chain

    Hi,
    tell me how to trigger the informatica work flow using the process chains.
    Please tell me the steps.
    Babu

    Currently, we have a custom trigger file on the BW system.  We have a workflow in Informatica that loops periodically and checks the data in this table.  When the file changes, the workflow in Informatica then continues. 
    However, I think a better solution is to use a <i>pmcmd</i> and set up a batch file that runs a command that will schedule your workflow.  You can then put this batch file on the BW server and call it from the process chain (use process OS command).
    The command will look something like this:
    <b>pmcmd scheduleworkflow -s</b> (server)<b> -u</b> (user) <b>-p</b> (password) <b>-f</b> (workflow)
    See Chapter 23 in your Informatica Help on using <i>pmcmd</i>.

  • Process Chains:Parallel processing

    Hi,
    If we have some 5 processes,how to load these processes parallelly using process chains?
    Here do we have to use "and" operation?
    thanks in advance
    Regards
    Dheepa

    Hi Deepa:
    Just for the understanding sake, please read the below:
    The following processes within process chains allows multiple predecessors to feed into a subsequent process. They are:
    AND:  All of the processes that are direct predecessors must send an event in order for subsequent processes to be executed
    OR:  A least one predecessor process must send an event
    The first predecessor process that sends an event triggers the subsequent process
    Any additional predecessor processes that send an event will again trigger subsequent process (Only if the chain is planned as “periodic”)
    EXOR:  Exclusive “OR”
    Similar to regular “OR”, but there is only ONE execution of the successor processes, even if several predecessor processes raise an event.
    as mentioned by srini and others, in your case you need not use a AND process.
    assign points if helpful
    kalyan

  • How to update the Process-Instance Variable Using Process API in OBPM 10.3?

    Hi All,
    I have a requirement to update the the process Instance variable from another process, but I am unable to find any method to update or set variable?
    I try the same using Process API also but no luck. Please provide me the code or link to implement same.
    Thanks & Regards,
    Ankur

    Hi,
    I have followed the procedure which was updated above.
    I ahve the sample to update the variable in the another instance of the another process. it's working fine. But I have followed the same procedure in our project it's giving the below exception at notification.send() method. Please help me to resolve this. thank you.
    fuego.transaction.DatabaseException: An error occurred while accesing the database.
    Detail:SQL statement: ' SELECT INSTANCEDATA, PROCESSID, INSTID, THREADID, NAME, PARENTTHREAD, PRIORITY, CREATIONTIME, AUTHOR, PARTICIPANT, NEXTPARTICIPANT, PROCESSDEADLINE, ACTIVITYDEADLINE, RECEIVETIME, ACTIVITYNAME, NTHREADS, CTHREADS, FCTHREAD, TOTALTHREADS, STATE, SOURCEACTIVITYNAME, ROLEIN, PENDINGITEMID, LASTRESULT, ITEMDEADLINE, NCHANGES , NREMARKS, NATTACHMENTS, HASPARTFORROLE,MICROACTIVITYNAME, V_REF_NO, V_TASK_ID, V_TASK_STATUS FROM PPROCINSTANCE WHERE PROCESSID = 63 AND INSTID = 1996 AND THREADID = 0 FOR UPDATE'
    at fuego.server.persistence.jdbc.JdbcProcessInstancePersMgr.load(JdbcProcessInstancePersMgr.java:1640)
    at fuego.server.persistence.Persistence.loadInstance(Persistence.java:827)
    at fuego.server.AbstractInstanceService.readInstance(AbstractInstanceService.java:764)
    at fuego.ejbengine.EJBInstanceService.getLockedROImpl(EJBInstanceService.java:218)
    at fuego.server.AbstractInstanceService.getLockedROImpl(AbstractInstanceService.java:879)
    at fuego.server.AbstractInstanceService.getLockedImpl(AbstractInstanceService.java:730)
    at fuego.server.AbstractInstanceService.getLockedWaiting(AbstractInstanceService.java:219)
    at fuego.server.AbstractInstanceService.getLockedWaiting(AbstractInstanceService.java:199)
    at fuego.server.execution.AbstractReceiveNotificationExecutionHandler.getLockedTargetInstance(AbstractReceiveNotificationExecutionHandler.java:223)
    at fuego.server.execution.AbstractReceiveNotificationExecutionHandler.receiveNotification(AbstractReceiveNotificationExecutionHandler.java:96)
    at fuego.server.AbstractProcessBean$41.execute(AbstractProcessBean.java:2776)
    at fuego.server.execution.DefaultEngineExecution$AtomicExecutionTA.runTransaction(DefaultEngineExecution.java:304)
    at fuego.transaction.TransactionAction.startNestedTransaction(TransactionAction.java:527)
    at fuego.transaction.TransactionAction.startTransaction(TransactionAction.java:548)
    at fuego.transaction.TransactionAction.start(TransactionAction.java:212)
    at fuego.server.execution.DefaultEngineExecution.executeImmediate(DefaultEngineExecution.java:123)
    at fuego.server.execution.DefaultEngineExecution.executeWithoutComponentImmediate(DefaultEngineExecution.java:199)
    at fuego.server.execution.EngineExecution.executeWithoutComponentImmediate(EngineExecution.java:95)
    at fuego.server.AbstractProcessBean.receiveNotification(AbstractProcessBean.java:2757)
    at fuego.server.iec.LocalIPCHandler.sendNotification(LocalIPCHandler.java:79)
    at fuego.server.execution.microactivity.DefaultSendNotificationExecutionHandler.sendNotification(DefaultSendNotificationExecutionHandler.java:103)
    at fuego.server.NotificationComponent.sendNotification(NotificationComponent.java:95)
    at fuego.server.AbstractProcessBean$49.execute(AbstractProcessBean.java:3270)
    at fuego.server.execution.DefaultEngineExecution$AtomicExecutionTA.runTransaction(DefaultEngineExecution.java:304)
    at fuego.transaction.TransactionAction.startNestedTransaction(TransactionAction.java:527)
    at fuego.transaction.TransactionAction.startTransaction(TransactionAction.java:548)
    at fuego.transaction.TransactionAction.start(TransactionAction.java:212)
    at fuego.server.execution.DefaultEngineExecution.executeImmediate(DefaultEngineExecution.java:123)
    at fuego.server.execution.EngineExecution.executeImmediate(EngineExecution.java:66)
    at fuego.server.AbstractProcessBean.sendComponentNotification(AbstractProcessBean.java:3266)
    at fuego.server.AbstractProcessBean.sendComponentNotification(AbstractProcessBean.java:3252)
    at fuego.components.Notification.send(Notification.java:148)
    at xobject.EPCS.PAction.collateTask(PAction.xcdl:34)
    at oracle.TRReview.Default_2_0.Instance.CIL_poReview(Instance.xcdl:25)
    at oracle.TRReview.Default_2_0.Instance.CIL_poReview(Instance.xcdl)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    at java.lang.reflect.Method.invoke(Method.java:597)
    at fuego.server.execution.EngineExecutionContext.invokeMethodAsCil(EngineExecutionContext.java:1082)
    at fuego.server.execution.EngineExecutionContext.runCil(EngineExecutionContext.java:1277)
    at fuego.server.execution.TaskExecution.invoke(TaskExecution.java:401)
    at fuego.server.execution.InteractiveNormalCilExecution.invoke(InteractiveNormalCilExecution.java:425)
    at fuego.server.execution.TaskExecution.executeCIL(TaskExecution.java:513)
    at fuego.server.execution.TaskExecution.executeTask(TaskExecution.java:697)
    at fuego.server.execution.TaskExecution.executeTask(TaskExecution.java:657)
    at fuego.server.execution.TaskExecution.executeTask(TaskExecution.java:154)
    at fuego.server.execution.microactivity.InteractiveMicroActivity.executeNormalCil(InteractiveMicroActivity.java:501)
    at fuego.server.execution.microactivity.InteractiveMicroActivity.executeItem(InteractiveMicroActivity.java:454)
    at fuego.server.execution.microactivity.InteractiveMicroActivity.execute(InteractiveMicroActivity.java:104)
    at fuego.server.AbstractProcessBean$48.execute(AbstractProcessBean.java:3204)
    at fuego.server.execution.DefaultEngineExecution$AtomicExecutionTA.runTransaction(DefaultEngineExecution.java:304)
    at fuego.transaction.TransactionAction.startBaseTransaction(TransactionAction.java:470)
    at fuego.transaction.TransactionAction.startTransaction(TransactionAction.java:551)
    at fuego.transaction.TransactionAction.start(TransactionAction.java:212)
    at fuego.server.execution.DefaultEngineExecution.executeImmediate(DefaultEngineExecution.java:123)
    at fuego.server.execution.EngineExecution.executeImmediate(EngineExecution.java:66)
    at fuego.server.AbstractProcessBean.runTask(AbstractProcessBean.java:3208)
    at fuego.ejbengine.EJBProcessControlAdapter.runTask(EJBProcessControlAdapter.java:1162)
    at fuego.ejbengine.EJBProcessControl_1zamnl_EOImpl.runTask(EJBProcessControl_1zamnl_EOImpl.java:4463)
    at fuego.ejbengine.EJBProcessControl_1zamnl_EOImpl_WLSkel.invoke(Unknown Source)
    at weblogic.rmi.internal.BasicServerRef.invoke(BasicServerRef.java:589)
    at weblogic.rmi.cluster.ClusterableServerRef.invoke(ClusterableServerRef.java:230)
    at weblogic.rmi.internal.BasicServerRef$1.run(BasicServerRef.java:477)
    at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:363)
    at weblogic.security.service.SecurityManager.runAs(Unknown Source)
    at weblogic.rmi.internal.BasicServerRef.handleRequest(BasicServerRef.java:473)
    at weblogic.rmi.internal.wls.WLSExecuteRequest.run(WLSExecuteRequest.java:118)
    at weblogic.work.ExecuteThread.execute(ExecuteThread.java:201)
    at weblogic.work.ExecuteThread.run(ExecuteThread.java:173)
    Caused by: java.sql.SQLException: [BEA][Oracle JDBC Driver][Oracle]ORA-02049: timeout: distributed transaction waiting for lock
    at weblogic.jdbc.base.BaseExceptions.createException(Unknown Source)
    at weblogic.jdbc.base.BaseExceptions.getException(Unknown Source)
    at weblogic.jdbc.oracle.OracleImplStatement.execute(Unknown Source)
    at weblogic.jdbc.base.BaseStatement.commonExecute(Unknown Source)
    at weblogic.jdbc.base.BaseStatement.executeQueryInternal(Unknown Source)
    at weblogic.jdbc.base.BasePreparedStatement.executeQuery(Unknown Source)
    at weblogic.jdbcx.base.BasePreparedStatementWrapper.executeQuery(Unknown Source)
    at weblogic.jdbc.wrapper.PreparedStatement.executeQuery(PreparedStatement.java:128)
    at fuego.jdbc.FaultTolerantPreparedStatement.executeQuery(FaultTolerantPreparedStatement.java:598)
    at fuego.server.persistence.jdbc.JdbcProcessInstancePersMgr.load(JdbcProcessInstancePersMgr.java:1627)
    ... 69 more
    BatchOperationException fuego.papi.exception.CannotStoreNotificationException: An instance in Process '/Division#Default-2.0' could not be notified.
    Regards,
    Sudhakar.

  • Process Diagram of an instance using PAPI

    Hi,
    I`m trying to get que Process Diagram of an instance with PAPI using processGetDiagram but it doesn`t work, any ideas or examples?
    Thanks a lot

    I dont think there is any way to update the value of any instance variable directly by PAPI.
    What you can do is have a Global Activity with instance access from where you can access all the instance/ external variables.
    You can call this activity using PAPI and can send arguments telling it what to do.
    Let me know if this helps.

  • How to get the values and attributes of Longlived processes by using ProcessID.

    Hi Experts,
    For  every process we creates, LC ES2 creates processID.
    we know that if you creates  a long lived process, all  the  values which are in proces will be stored some where  in DB.
    Here my requirement is by using  processID I need to get all/some values/variables stored in database.
    I am not able to get values using processID. Here I don't have clue on  how to get the values.
    Please tell me  how to get the same by using  Process Management. Link/guide would be helpful
    Thanks
    Praveen.

    Searchable means you can put a filter criteria on it (e.g. where amount > 50000)
    Visible means you can add have this column returned as an output (and therefore you can add it as column in listview and see it in Task Details).
    These two attributes were provided so that queries could be done against the process variables, but the exact contents of the variables are not allowed to be seen.

  • How can we tell the client that use process order or production order (proc

    Dear guru,
    My question on what reason we can tell the client that u have to use process order or production order .
    On what scenario we suggest client that use process order or production order

    Hi,
    Process manufacturing is primarily designed for the chemical, pharmaceutical, food and beverage industries as well as the batch-oriented electronics industry
    Discrete manufacturing is u201Cthe production of distinct items such as automobiles, appliances, or computers,u201D whereas process manufacturing covers u201Cproduction that adds value by mixing, separating, forming, and/or performing chemical reactions. It may be done in either batch or continuous mode.u201D
    Letu2019s think about what your company manufactures. Does it require mixing chemicals? If so, you may need an ERP system that does things like calculate ingredient quantities.
    If your company assembles products from many component parts, youu2019ll require discrete manufacturing functionality
    Other approach:
    If the finish good cannot return back to its basic components, your manufacturing is Process. For instance, the finish good is a can of soda. It cannot return back to its basic components such as carbonated water, potassium benzoate, aspartame, citric acid, and other ingredients. But if the finish good is car or computer, your manufacturing process is Discrete because it can be disassembled and the parts, to a large extent, can be returned to stock. Therefore Bill of Material (BOM) of discrete manufacturing consists of component parts for assembly while Process manufacturing consist of formulas, recipes and other ingredients
    Process manufacturing is scalable. If a formula calls for 1,000 pounds of cake flour, but you only have 500 pounds, you can still bake cakesu2014just not as many. Conversely, in discrete manufacturing, one missing part means waiting for it before the finished assembly unit can start rolling off the production line
    The obligatory requisite for process manufacturing is Lot Potency and Shelf Life where as discrete manufacturing values Serial Numbers, ECNu2019s and assembles.
    If it is discrete manufacturing ---go for Production order
    If it is process manufacturing ---go for process order
    thanks and regards
    Venkat V

  • Query on open planned orders details with process order GR details

    Dear Experts,
    I need to create a query in SQ01 where the requirement is as given below,
    Query output should display the open planned orders  (Planned orders which is not converted to process order details) details for a material like Planned order number, Planned order quantity, Start date, Finish date and also  the details of the list of process orders created for the same material with its details like PO qty, GR qty, Basic start date, Finish date, Actual finish date, BOM Component material codes, component quantity.
    But i tried creating this query by joing the tables PLAF+ AFPO+AUFK+ AFKO+RESB . My input parameter will be the Material Number for which Planned order and Process orders are being created.
    But i am unable to generate the output when i create a query by joining these tables
    Is it possible to obtain the output for open planned order details and process order details in a single query ?
    I am failing in my repeated attempts
    Please provide your suggestions for developing this query
    Regards,
    J.Balakrishnan

    Dear Bala,
    as alternative , for use a query report and not a custom abap report, you can try to read data from MRP tables MDKP and MDTB . In these one tables you can find both elements (planned order and production orders) for to start to research all details that you need.
    You can also use MDTB-DELKZ to filter only planned order (PA) and Production order (FE).
    With the number order you can read the RESB table in order to define components details.
    With this table would you the advantage to have always the opened orders.
    If the following table are empty you should make a little customizing modification so that once MRP run will write them.
    Give me feedback if i have been useful for you.
    Daniele

  • Cannot create process to handle workflow instance conversation

    <Nov 18, 2002 1:04:30 PM IST> <Error> <B2B> <000000> <<Process>
    Hi,
    Iam getting following error when iam trying to invoke
    subworkflow.
    can anyone help me in solving this problem.
    regards
    Ananth
    ERROR: Cannot cr
    eate process null.>
    <Nov 18, 2002 1:04:30 PM IST> <Error> <B2B> <000000> <<B2B-BPM-Plugin> ERROR:
    Cannot create process to handle workflow instance conversation
    com.bea.b2b.protocol.ProcessManager$CreateException: ERROR: Cannot create proces
    s null.

    Hi Ajaz,
    Error description is not detailed enough to provide the solution. You need to post the error message what you got in the server log files. This should contain specific details about the issue.
    Not sure but issue may be related to JVM settings. if it is so, server log file will provide the error description.

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

  • Creating Sales Order with credit card using Process Order API

    Hi All,
    When trying to create sales order with payment type as Credit card using Order data storing into staging tables and then calling Order Import Concurrent Program. The order is being created in ENTERED state.
    While trying to passing the same details to Process Order API to create Sales Order, we are getting following error:
    Unable to set up a Credit Card Bank Account for the Customer.
    Credit Card information on the order is not valid.
    Why getting this error while using Process Order API.
    Regards,
    KANN.

    When using the API, are you trying to create the order as booked using the booked flag or the book action?  I would recommend using the action if you are not. To troubleshoot, I would try the API without booking and then use the following article to determine the issue:
    Unable To Setup A Credit Card Bank Account For The Customer. CC Information On The Order Is Not Valid (Doc ID 1450936.1)

  • Process creation using Global Automatic Activity - OBPM 10g

    Hi,  I would like create the process instance for my application on every 2nd business day of a month. I also have a calendar defined for checking business day.  But I am unable to figure out to how use that calendar to determine second business day of any month. Global Automatic type is set to Automatic schedule and monthy option was selected. But I believe this would trigger the process on every second day of the month, without considering the fact whether its  business day or not. There is Runs on Holidays checkbox, but not sure what it really does. If it checks for holidays then which calendar does it refers to. Hence, please let me know how can i specify a calendar or any alternate solution to trigger process creation. Thanks, Namit
    n

    I am not sure what you saying..Did u mean Global Creation ? But that would have a user to invoke the process..I want to invoke it automatically...I got a part of the answer...But it takes all instances..and creates multiple instances..I want to isolate the instances previously been transferred..What I am doing is ..Using a Global Automatic to invoke the other process.Writing a PAPI code to call the other process from this process...and Polling By Interval every 1m..
    Here is a code:-
    ProcessService ps;
    ps.connectTo(url : Fuego.Server.directoryURL, user : (String)BusinessParameter.getValue(name : "USER_NAME"), password : (String)BusinessParameter.getValue(name : "PASSWORD"));
    logMessage("Process Service connected--->" );
    businessProcess = ps.getProcess(process : "StartProcess");
    InstanceFilter instanceFilter;
    instanceFilter.create(processService : ps);
    SearchScope searchScope = new SearchScope(ParticipantScope.ALL,StatusScope.INPROCESS_AND_COMPLETED);
    instanceFilter.searchScope = searchScope;
    result2 = businessProcess.getInstancesByFilter(filter : instanceFilter);
    logMessage("Length ==>" +length(result2));
    length = length(result2);
    logMessage("Length Transferred==>" +length);
    test["name"] = "testing";
    if(length > 0)
         for(int i=0; i < length; i++)
              ProcessInstance.create(arguments : test, argumentsSetName : "BeginIn");
    else
         logMessage("length is-->" + length);
    length = 0;
    Any suggestions on how to isolate the previous obtained instances would be appreciated..
    Thanks,

  • Optimal value of processes parameter in AMS instance

    Hi
    If we have several database instances on single server which are accessing ASM instance. How can we calculate optimal value of PROCESSES parameter for ASM instance
    Here, I would like to mention that we are using Goldengate also for replication and for this our ARCHIVE DG is on ASM
    Rgds
    Harvindr

    I have seen systems with multiple database instances (4-6) and running very well with just the defaults. That being said, follow the recommendations. GG, IIRC, talks to the database which does all of the reads/writes for GG. Therefore, 50+50*n RDBMS INSTANCES.
    http://docs.oracle.com/cd/E11882_01/server.112/e10803/config_gg.htm
    "Oracle GoldenGate 11g introduces a new optimized method of reading log files stored in Oracle ASM. *This new method uses the database server to access the redo and archived redo log files, instead of connecting directly to the Oracle ASM instance*. The database must contain the libraries with the API modules. The libraries are currently included with Oracle Database release 10.2.0.5 and 11.2.0.2. For information for accessing the API modules for other releases, see "Optimized Access for Oracle GoldenGate to Redo Log Files in ASM - for Oracle Database Releases other than 10.2.0.5 and 11.2.0.2" in My Oracle Support Note 1333171.1 at https://support.oracle.com/CSP/main/article?cmd=show&type=NOT&id=1333171.1 "

  • Error in getting process status for oracle instance: instance12- component: coreapplication_obisch1

    Hi,
    while uploading new rpd getting error message in enterpriise manger
    Error in getting process status for oracle instance: instance12- component: coreapplication_obisch1,chekced in the dignostic log found above mentioned error
    what can be cause of the probelm
    thanks

    Hi,
    1.Try using the sample rpd of it works, then the problem with the new rpd.
    2. Restart the service once then upload the new rpd.
    Regards,
    VG

Maybe you are looking for

  • Automatic serial number&equipment creation in goods receipt

    Dear gurus, We use to automatic serial number&equipment creation in goods receipt. While serial number master datas and equipment master datas were creating in goods receipt, how can we fill some fields for serial number and equipment master datas? (

  • How to organize Places tags in Elements 12

    Hi I have assigned pictures to several different locations in Colorado using the Photoshop Elements 12 Organizer. Most of these locations are listed under "Colorado" category but one location persistantly lists under "CO". I have the same issue with

  • PCo 2.0.1.8 to MII 12.1.5

    Hi .. Trying to create a UDC dataserver to PCo from MII 12.1.. I know the IP address where PCo is installed, How can I obtain the port number of the agent instance? Appreciate your help. Thanks, Ajay.

  • Ftp ; the best practice

    Hi All, I have a question about FTPing the files/folders etc from a "source" UNIX/LINUX box to the "target" box. I know that you can use FTP, Secure FTP, may be some java package, there is on thing like "RSYNC" ....and others in the market. But i wan

  • Search if a layersets with a specific name exist and execute a function if it is the case

    Hello, How can i write a script that search if a layersets with a specific name exist and execute a function if it is the case? Some examples? Many thanks. Regards. Sebastien