Show information for BPM process instances to possible future assignees

Hi all,
My environment is 11.1.1.4.
I want to develop an ADF application that shows users information for BPM process instances which will possibly produce a user task assigned to them in the future.
What I have done is
1. Get BPMAppRole from the user name.
2. Get the list of CompositeInstance with STATE_RUNNING from the BPM process name obtained from the BPMAppRole.getName().
From the list of CompositeInstance, I have to extract the instances that will possibly produce a user task assigned to the user in the future.
But I have no idea how to do this.
Maybe my current approach is totally incorrect.
Please help!
Regards,
Kenji

Hi,
By chance I found a method that you can use:
oracle.bpel.services.workflow.query.model.TaskSequence getTaskSequence(oracle.bpel.services.workflow.verification.IWorkflowContext p1, oracle.bpel.services.workflow.task.model.Task p2, java.util.List p3, java.util.List p4, java.util.List p5, boolean p6) { }
getTaskSequence might help you. This is under ITaskQueryService interface.
HTH.

Similar Messages

  • How to change used WD windows for BPM process instance?

    Hello SDN!
    We have two BPM processes (A and B) and two WD DC (A and B). Process A uses window from WD DC A, process B uses window from WD DC B.
    We deactivate process A since we need process B to be used and since A and B use the same WebService. But existing instances of process A still using window from WD A. Is it possible to switch instances of process A from using WD window A to using WD window B? And how we can do this?
    Regards,
    Lev.

    Hi Lev,
    Try this:
    Use an exclusive choice in your process. Create 2 Human Tasks after the Choice with these 2 WD Screens (A & B).
    Based on some condition, you can execute either one of the Human Task. Once this branch of the Exclusive choice executes, place an Uncontrolled merge so that the process execution does not wait for the other branch to execute.
    In this way, based on some condition, you can either execute either WD Screen A or WD Screen B without affecting each other.
    Hope this helps.
    Regards,
    Sid.

  • BPM Process Instance Id

    Guys,
    I'm expecting BPM process instance id to be in progressive sequence.. But it is not.
    I created an instance at 10 am , id is 120074
    Then i created an instance at 11 am on the same day, id is 110089.
    Is this possible? Do anyone knows how it works?
    Thanks in advance....

    There is a range size setting named InstanceKeyBlockSize     at the BPELConfig:bpal MBean which drives the range of IDs each managed server gets hold of. The default for this is 10000.
    When the servers start they pick their ids reading the next block from ID_RANGE table and updates the table for next availabe range.
    Say you have 2 nodes , one holds keys from 10000 to 19999 and the other holds from 20000 to 29999 , depending which node you are on you get the next instance id from that pool.
    This expalains why one process has an Id starting with 120*** and the other with 110***

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

  • BPM API for interrupt process instance

    Hi,
    I have used the BPM API's to locate the process instance number that I need. How can I use this number to send a message interrupt to the process? (Has a boundary catch message)
    Alex
    Edited by: 931245 on May 15, 2012 10:24 AM

    Hi,
    Thanks for the reply. But my expectation is different. This is getting the component instance id without any argument, for the current instance. But I need to retrieve the Bpel instance based on some arguments, may be using the correlation id / composite sensor attributes / flex fields attributes...

  • Security Settings For Deleting Process Instance Information

    Hi there,
    We are currently having issues with our more "novice" users deleting "unsuccessful" or "error" process instances. Are their any security settings we could use for this type of user profile that would not allow them to delet these instances?
    This is in PS Financials V8.9
    Thanks, Dan
    Edited by: user6340243 on 5-Mar-2009 9:58 AM

    Hi Dan,
    Yes you can do that. The process file associated with the Userid is not having Permission to alter process request.
    Identify the Process Profile permission list:
    Navigation: PeopleTools > Security > User Profile
    Make changes to the Process profile permission list:
    Navigation: PeopleTools > Security > Permission Lists
    Select the appropriate process profile permission list.
    Go to 'Process' Tab. Click on 'Process Profile Permissions' hyper link. Under 'Allow process request' section should be changed to Owner or none based on your requierment.
    Hope this helps.
    Regards,
    Pratheepan

  • BPM11g How to customize the title column of a BPM process instance?

    Hi, everyone.
    In the process track panel of Workspace there is a table with process instances in it.
    Users shall look into this panel and find information about their processes.
    One of the columns of this table is named "title" and the content of this column is like "instance #" + process instance number + process type name.
    This title is of little use to end users while they are trying to find a certain business process.
    I want to customize this column so I can put some key business word in the content but I do not know how.
    Anyone can help? Thank you.
    Edited by: Matt Wang on Apr 19, 2011 10:32 PM

    Hi Matt
    1. For Flex Fields, please see the below link. Basically you login into bpm/workspace as Adminstrator and then you can do this.
    http://download.oracle.com/docs/cd/E17904_01/integration.1111/e10224/bp_worklist.htm#CHDFDHGD (Latest version 11.1.1.4)
    http://download.oracle.com/docs/cd/E12839_01/integration.1111/e10224/bp_worklist.htm#CHDFDHGD (Older version 11.1.1.1)
    2. As admin user only you can create a new custom view, by clicking + icon on left side. For this new View, you can define the name, columns you want to show in this new view, any particular sort order etc etc. Then you can set some privleges also for this new View. After this, this View should now be visible for all the normal regular uses (non admin user). I guess there may be a way to make these custom views as the default views also for a specific user or role. I have not explored this though.
    In the above links see the section: Section 30.3, "Customizing the Task List Page"
    3. In EM Console, we may not be able to do any customizations. But if your intention is to search for list of tasks with specific criteria, in EM console itself for your process, on right side, there should be a tab like Intances. There you can specify your search criteria and Search. I am not aware of how to show the data in the Name column for the instances listed.
    Thanks
    Ravi Jegga

  • 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

  • How to Terminate the BPM Process instance

    Hi,
    If I have an instance of bpm process which fault at the database service task, I want to manually terminate or suspend it. I tried to do it in the workspace as an bpm administrator, however, since the instance pass the human task already, so that i can't suspend the instance. On the enterprise manager console, I don't see any way to terminate one instance. Please advise and it is so important and urgent for me, since our bpm project already on prodction, we have to fix it as soon as possible. Thanks in advance

    I'm thinking you're asking what you can do with an instance that has an uncaught exception and not how to have modeled it so they can be properly handled. If you're not catching the exception, in any of the 7 techniques listed below - you're kind of stuck.
    If you have a service task and you'd like to handle the exception (manually or other), you have the choices listed below. If you are using none of these, then you're allowing the BPMN engine to handle the exception and about all you can do is to delete the instance in Enterprise Manager.
    1) You could add a catch error event to the boundary of the Service task and have that event designated to handle the exception thrown. From the boundary event, you might have a sequence flow to an Interactive activity that lets you hande the exception. Once handled, the instance can continue on with the process.
    2) You could add an event subprocess in the same process as the Service activity that has a start error event and have that event designated to handle the exception thrown. From the event subprocess, you might have a sequence flow to an Interactive activity that lets you hande the exception. The difference between this scenario and the first is that the instance in the process has to terminate in the end event in the event subprocess.
    3) If your process is invoked as an embedded subprocess, you could add a boundary event (1 above) or catch it in an event subprocess (2 above).
    4) If your process is a reusable process invoked from a parent process using a Call activity, if the exception isn't caught inside the called subprocess you could add a boundary event to the Call activity in the parent process. This is similiar to 1 above and you'd need a sequence flow comingin out of the boundary catch error event on the Call activity to go somewhere in the process to handle the exception.
    5) If your process is a reusable process invoked from a parent process using a Call activity, if the exception isn't caught inside the called subprocess and it is not caught by a boundary error event on the parent's call activity then you could add an event subprocess in the parent process that has a start error event and have that event designated to handle the exception thrown inside the child process.
    6) There is a way to handle exceptions thrown inside a peer process but I'm guessing that might be too much for this post.
    7) You can handle exceptions using a Policy outside of the processes. Rather than using the above to handle exceptions, you could use policy based exception handling where you give the policy the different types of faults you want to catch and if you want to retry, let it be handled by someone in Enterprise Manager and if you just want to abort the instance.
    If the exception is not caught, then you're in the scenario you're in now and the BPMN engine is where it is unfortunately caught. Although you can see it, it is a non-recoverable exception and about all you can do is delete the instance in Enterprise Manager.
    Hope this helps,
    Dan

  • How to create BPM process instances?

    I need to use java to create new BPM 11.1.1.5 process instances.
    How to connect to bpm and use API?
    Can anyone paste detail code sources?

    Thanks Evolution...i actually missed out this lookup....
    Now provisioning is working fine for other resource object also...
    I have one more doubts regarding child table...i am using the same child table UD_ADUSRC for this resource object also and when i assigned any group membership thru this child table (in AD User1) it gives me DOBJ.insert failed error. I have checked the tasks (+Add user to group, Remove user from group, update user to group+) and all are referring the correct attrs (as in AD User). There is mapping defined in Resource Object and Process definition for Reconciliation also but recon any user with group membership is also giving me error...
    can't we use one child form in two process forms ? any other configuration which i should check?
    I am using the same look up for Reconciliation mapping attrs for both the resource objects (AD User and AD User1)....

  • Need help for BPM Process Task - Looping

    Hi Folks,
        I need some info regarding Task Looping in a BPM Process.
    Is there any code sample which mentions how to perform task looping and setting the context appropriately.
    Thanks,
    Brian.

    Hi Brian,
    Please find the below link for Multiple Looping
    http://help.sap.com/saphelp_nwce72/helpdata/en/3d/786ec2dd1243c28aeffa4c1c70df25/content.htm
    Regards
    Srikanth

  • Starting BPM process instance automatically

    In our process we would like to read the Oracle staging table and start the instance(s). We want this to happen every hour or so automatically.
    We looked into documentation for starting the instances. Looks like there are only two ways, one is through global creation activity, we don?t want to use this approach since it is manual trigger, the second one is API initiate. I couldn't find any documentation on this approch. Some one please point me to right document or suggest me better approach.
    Thanks,

    You can use Global Automatic activities. This kind of activities
    tipically run when a time is timeframe is reached (for example, every
    hour) or you can make them to be trigger by some event, like a JMS Message.
    NMS Reddy wrote:
    In our process we would like to read the Oracle staging table and start the instance(s). We want this to happen every hour or so automatically.
    We looked into documentation for starting the instances. Looks like there are only two ways, one is through global creation activity, we don?t want to use this approach since it is manual trigger, the second one is API initiate. I couldn't find any documentation on this approch. Some one please point me to right document or suggest me better approach.
    Thanks,

  • Tables to find breakdown information for External Process

    Dear all,
    may i know is there any tables which i can used to look for the breakdown information of external process (In production order -> Goto -> Cost analysis)? Currently i only able to find the summarise data in table COSP. Pls kindly advise.
    Thanks and regards
    YM

    The link is
    entity_type = 'WIP_DISCRETE_OPERATIONS' and
    pk1_value =wip_entity_id and
    pk2_value = operation_seq_num and
    pk3_value = organization_idHope this answers your question,
    Sandeep Gandhi

  • Need table information for Business process ID and Business process status

    Hi Guys/Sap,
                         I need PI table for business process ID(BPM) and Business process status table .Kind if any one know help me out .
    I have checked blog but ia could only fine basic tables .
    https://wiki.sdn.sap.com/wiki/display/XI/Useful%20ABAP%20tables%20in%20SAP%20XI.
    Regards,
    Sriram

    Hi Sriram,
          Search SE11 for SWF* tables.
    Regards,
    Ravi

  • How to making oracle bpm process instance asynchronous?

    I want to create a bpm process which start as asynchronous. Can anyone tell me how to do it and test it?
    Do I need to define the data structure/xsd first? Thank you

    This is quite easy.
    Double Click on the Message Start event of your BPM Process and then go to the Implementation Tab. Expand the "Advanced" pane by clicking on the "+" icon. Here you will see a Radio button that allows you to make your process "Synchronous" or "Asynchronous". Choose the mode that you want.

Maybe you are looking for

  • For Oracle XML Team:please help

    hi, I have been trying to run my java code using XSQLRequest from inside the stored procedure for past couple of days and i have had a couple of queries which were answered successfully.Thanks for that. But so far i have not been able to execute the

  • Hooking up old Graphite Airport to wired router.

    I had my old Graphite Aiport hooked up to a D-Link wired router which I also used for my iMac and Dell. The Airport was working like a charm until last week when the my D-Link wired router went kaput. I went out and bought a new D-link wired router (

  • Need an apple keyboard ?

    Hey guys Do you need the apple keyboard to work with Logic or can I use a regular microsoft keyboard ? Also can you right click in logic ? because I also want to use my regular mouse... I dont feel like dishing out 130 $ for a new apple keyboard and

  • AQ or Streams to replicate data from a database table and put it on a queue

    If was tasked with the above if I was using AQ I'd think about publishing to queue via insert trigger on a table that's the destination end of a replication. Given that there's replication involved it sounds like if you want to replicate data from A

  • Remote metadata entry?

    I recently finished scanning a few hundred slides for my dad and have loaded the scans into Aperture for cropping, color correction, and other edits. Is there a way that I could send him reduced-side versions of the images, have him add metadata, and