Attachments and Notes in a subprocess - aqualogic.bpm.modeling(Archived)

I want to see the attachments and notes into a subprocess. How can I do this? I'm doing the argument mapping but I don´t see the attachments...
Anybody has a simple example with 1 interactive in the main process --> 1 call to a Subprocess with 1 interactive --> And another interactive in the main process??

attachments can be shared with subprocesses by enabling an option in the process creation activity.
It is in the Advanced tab in the activity properties and it is called "Attachments can be visible to related processes"
Notes are not shared with subprocesses.


Audit trail

I have 4 processes in the workflow. The typical flow is process-1 triggers process-2 and so on. I would like to know if we can carry forward the audit trail for the instance in one process to other while triggeringg the processes. The audit trail should be visible through out the workflow. Is there a way to do this? 
Try clicking the "Expand All" button in the Workspace's Audit Trail tab. The parent process instances will show the flow through the child process.
For this to work, you'd need event tracking turned on for the processes (right mouse click the process in the Project Navigator -> click Properties -> click the Advanced tab ->click "Generate Events for all activities" or "Generate Events for Interactive activities").
Hi Dan
Thanks for the reply. The processes are not parent and sub process. It is like after comepleting the Credit Check process (the instance has reached End), Delivery process is triggered. Now the user wants to see the audit trail for Credit Check process in the instance of Delivery. Since both are two completely different instances, there is no audit trail for the previous processes. Can we display the audit trail for the previous processes in some way? What would be the best solution for this? 
The requirement is such that suppose we are having one parent process called "MoneyTransfer" which is initated by an individual. When the user initates the same, the worklfow starts, in between, we are having one child process called as "Verification" that need to be completed to complete the parent process.
The problem is that as soon as the flow moves to the child process the "AuditTrail" of the parent process is lost so the user won't be able to visualise the events happened in parent process because of that the child process was invoked.
Audit Trail of the Parent process is lost in Child Process. Is there any way, we can replicate events happened in Parent process be visible in Child process "Audit Trail".
Please provide some resolution for the same.
Thanks in advance,
Diego Carrio mentioned an idea on this forum a while back that might help you. He suggested using PAPI-WS to return an audit trail of another instance. Because the method that retrieves the audit trail for another instance (InstanceEventList class instanceGetEvents(String instanceId) method) is not available from the Catalog's Fuego.Papi module, his idea was to instrospect the PAPI-WS into your project as an exposed web service.
It sounds like you might have a couple scenarios.
1. If you have a parent process that invokes a child subprocess, then you have the predefined variable "parent" available inside any automatic activity of the child subprocess. You could retrieve the parent's instance id using "" and retrieve the list of events in the parent's audit trail (e.g. "myInstEventListFromParent = instanceGetEvents(;").
2. If you have a sibling process that was invoked before the current process, it's a bit trickier. You could still run the instanceGetEvents() method, but you would have to pass in the first sibling process's instance id (the predefined variable "" from the preceding sibling process) into the second sibling subprocess as an instance variable (e.g. "myInstEventListFromSibling = instanceGetEvents(idFromSiblingProcess);").
Go to for the documentation on PAPI and PAPI-WS.

Update Variables through Global Interactive

I need to update some project variables through a global interactive activity.However,the only problem is that my global interactive does not have instance access.This is so because of i am trying to club two or three funtonalities at one place so that the user has less number of clicks.Hence can anybody suggest any other alternative way to acheive the same.
Any kind of suggestions will be of great help...
If you want to update project variables, here are some options all require about the same level of effort on the end user's part:
1. Global Interactive activity with instance access (right mouse click the Global Interactive -> Properties -> Runtime -> check "Has Instance Access". This will not work for a Global Interactive activity unless you have this property added. Benefit is that it's easy for a developer to add this and end users will not be able to update the project variables unless they have been granted for the role associated with the Global Interactive activity.
2. Pass the project variables into and out of an existing Screenflow of an Interactive activity and update them there. Benefit is that end users do not have to be trained to click on the dropdown on the far right side of the workspace for their work item instance.
3. A Message Wait activity with an Interrupt could be used, but you'd still need a Global Interactive activity (this time without "Instance Access") to cause the work item instance to flow to the Message Wait activity. There's a lot of "wiring" for the developer to build this pattern correctly and the end user would still have the same level of effort to get the project variables changed.
4. PAPI or PAPI-WS could be used if you needed to access the instances from outside the Workspace.
Hi Daniel,
Thank you for your suggestions.As per my requirement i can't go with "has instance access" however i was trying to implement the same through message wait and update the variable outside the global interactive but again i faced the same problem.The problem being that global interactive does not have "has instance access" so i was getting a correlation error as i am not able to identify the instance.Can you suggest anything as how to identify the instance in message wait?
Thanx in advance
Backing up a bit, a correlation is like a primary key on a database table. It is a way you can uniquely identify and notify a work item instance in a process. Notifications into a process can either use the unique (e.g. "/ProcessName#Default-1.0/1/0#ProjectName") which is difficult to determine, or a correlation (e.g. order "22378").
As a developer, there are quite a few moving parts to getting this to work using a Message Wait activity that has an interrupt. Not trying to dissuade you, but I believe you might find that there are more "clicks" that the end user has to do using this technique than if you used a Global Interactive that has instance access.
If you have not done this before, here are the high level steps you'll need to do as a developer:
A. Set up the Message Wait activity flow:
1. Add a Message Wait activity outside of any transitions currently in your process.
2. Change the Message Wait activity's property to "Allows interruptions"
3. Change the Message Wait activity to receive input argument(s)
4. Modify the Message Wait activity to receive the correlation
5. Add an Interactive or Automatic activity beside the Message Wait activity
6. Add a transition from the Message Wait activity to the Interactive or Automatic activity.
7. Add the logic inside the Interactive or Automatic activity to update the project variables and to send the work item instance back to where it was interrupted in the process.
B. Create the correlation in the process
1. Create the correlation inside the process for the instance using either an automatic activity or the Begin activity
C. Create the Global Interactive activity to Notify the process
1. Add a Global Interactive activity
2. Add the logic to send the notification to the specific work item instance
D. Remove the Correlation from the process
1. Once there is no more need for the correlation, remove the correlation inside an Automatic activity (commonly done in an Automatic activity just before the End activity)
In answer to your question - just a guess, but you are getting the correlation error probably because you might not have done one or more of these items listed above correctly (specifically items A3, A4, B1 and / or C2).
Thank you Daniel...
Its working!!!

Calling BPM Sub Process from another BPM Process - Stuck at Sub Process

JDeveloper, BPM, WLS 10.3.6
I am trying to Call a BPM Process from another BPM Process. Both the processes are defined in the same BPM Project.
Both the Processes have 'None' Start and End activities.
The 'Parent Process' has a 'Call Activity' which calls the 'Sub Process'.
The Sub process takes a parameter of payload object as input and returns output (also same payload object)
I have passed the payload object from parent to sub process in the 'Data Associations'.
The Start and End activities in the sub process also have the data associations set where I am passing the payload object from parent process to child process.
When I run the process and see the Enterprise Manager console - Audit Trail / Flow tabs,
Flow Tab - The progress of the process is showing only till the Calling of the sub process in the Parent Process. It does not show the Sub Process.
Audit Trail Tab - Shows that the Sub Process is called but has not reached to the End of the Sub process.
The audit trail does not have links to the sub process activities.
I cannot see any exceptions as well in the audit trail.
How can I find out why the process is stuck? Or what is going on in the process?
Please let me know if my explanation is not clear?
Thanks for any help
I saw the below bug filed with Oracle, so we can't see the detailed audit/flow trial for sub process.
Problem : Reusable Processes Contain Incorrect Content In Flow Trace/Audit Display
When a Process contains a call to another Callable Process, the content of that Called Process is incorrectly displayed/referenced in the Flow Trace/Audit for the BPMN Process Instance view through EM.
The issue is identified to be a bug 12780112
Actually we can see the audit trail of a child process in EM console. In Em console if you select a particular instance and in the Trace view you can able to see 2 BPMN components. If you click on the calling process name then it'll show you the parent process's Audit trail and flow. If you click on the callable process name then it'll show you the child process's Audit trail and flow.
Thanks for replying.
I have another Sub Process with Start and End events as Message Events and used Send Task and Receive Task (Implementation : Process Call) in the Main process to invoke the sub process asynchronously.
Then, the Sub Process is shown in the 'Flow Trace' as child of the main process.
In this particular one, I used 'Call Activity' to call the sub process.
So the Audit trail is showing the sub process as a child.
But what I was trying to say is that the audit trail did not have links to the entries in the 'Event' column (in Enterprice manager - instance window). (like Instance entered activity, Instance left activity etc).
I was intending to use these links to see the payload information and try to debug if there is any problem with the code.
The actual problem I was trying to say in the post is that, even after the user responds to the activity (User Task - Approval) in the Sub process,
the audit trail is not proceeding further.
In the Sub process definition, after the user task, there is End with none implementation.
Hope it is clear now.
Thanks and Regards

Approving mutiple BPM requests

Hi All,
We want to approve mutliple BPM requests(instance) in single click(approve).Is this possible?If yes,Please let me know the ways to do.
There a couple ways to do this, but the simplest would be to use the out of the box capability in the Workspace to do this.
Select the multiple instances in the workspace task list -> click the 'Action' dropdown -> click 'Approve'.
Hi Dan,
Thanks for your reply.
We would like to consolidate all BPM requests to single request and approving the single request(Consolidated Request).
My exact requirement is we would like to consolidate the BPM requests which are belongs particular state to single request and approving the consolidated request.
There's another way and others will have other ideas, but here's what I think might be the simplest.
In your process, you might have a "main instance" flowing through it (the one single approval you're looking for). You could then have a Parallel-Complex gateway with two branches. One branch would go to an interactive activity where someone could do the single approval. The other branch would go to an embedded subprocess set up as multi-instance. The collection passed into the subprocess would create an instance for each item in the collection. Both the interactive activity and the embedded subprocess would have a sequence flow going into the Complex merge gateway. If the sequence flow coming from the embedded subprocess is taken (meaning that all of the items had been approved individually), then the "main" instance in the other branch would be aborted and the instance would leave the complex gateway. If on the otherhand, the instance in the "main" interactive activity had been approved, then the instances in the multi-instance subprocess would be aborted and the instance would leave the complex gateway.
Hi Dan,
Sorry,if I am confusing you.
My requirement is,if user1(initiator) submits the multiples requests from BPM workspace(lets take 3 requests),then user2(Approver) needs to get single request(Consolidation of 3 requests from user1).Then user2 will approve the single request(Consolidated request).Could you please suggest us to achive this.
Thanks in advanced,
Hi All,
Can anybody please help me on this issue.
Thanks in advacne.

Process Modelling in BPM 11g

Hi Everyone, I need to design onboarding employee process. So for every department I am planning to design separate process and a overall parent process and planning to communicate via send/receive task between parent and child. So when i have multiple child process and a parent process can i see the overall audit trail from child process ? For example parent process is employeeProcess and child process is hrDepartmentProcess. When the employee instance is in hrDepartmentProcess, can i view the entire audit trail from parent till hrDepartmentProcess(interactive activity) as a participant in child process from bpmWorkspace? or Do i need to change my design for this?. Thanks for your time
If you look at the audit trail in the Workspace, you will only see the instance in the child process. Not what you're looking for, but if you look at the instance in Enterprise Manager you will see the entire composite displayed. Dan
Thanks Dan. I was able to see the entire composite flow in EMIs there a way I can show the entire compiste flow in workspace for participant ?If i use embedded subprocess for child process I can show the entire Audit Trail. But what are the disadvantages when I use embedded subprocess for child process ? . Thanks a lot Dan.
If you're using the Workspace audit trail's "treeview" setting, you will be able to see both the parent and the child processes if you use either the embedded subprocess or the call activity. Dan Atwood
Thanks Dan. But we should use call activity only for reusable process right?In my design, I am trying to separate each department on onboarding employee as process. So in this case, which one is better embedded subprocess or callable process ?
From what you've described, either the embedded subprocess or call activity would work.  I tend to use the embedded subprocess if the called subprocess is relatively simple or if I have a collection/list of items that I need to loop or burst out simultaneously. Don't know your use case, but I tend to favor the call activity over embedded subprocesses. Dan Atwood
thanks a lot Dan for valuable information
Dan, One more question, Do we have out of the box export to excel functionality in OBPM 11g (to export the items in the inbox or any other  customized view)