Completed Process instance - History of Context data
Hi,
I've a completed process instance. I'm able to look for that process instance at "Manage Process" -> ....... -> "Advance Search".
My question is, how can i view the history of the context data for each of the tasks of the completed process instance. When i select the the process instance and click "Show Tasks" button, i couldnt see any task instance ID for that completed process instance.
Any idea?
Any help would be much appreciated.
Thanks.
- julius
Hi David,
Thanks for the reply.
I'm interested at the context data/input/output parameters of all the tasks in a completed process instance, for debugging/administration purpose.
completed tasks cannot be returned to the NWA even though they are partly available in the system.
Can you explain more about "partly available in the system" ?
Thanks,
- julius
Similar Messages
-
Process Instance.Task Details.Update Date
Hi experts,
Process Instance.Task Details.Update Date
Process Instance.Task Information.Update Date
From these two dates which one captures the approval task assignment date.
For e.g. If we reassign the approval task after some idle period to another approver which date will give this reassignment date?There's also information in the OSH and OSI table.
Process Instance.Task Information.Assigned Date
OSI_ASSIGNED_DATE
Process Instance.Task History.Assign Date
OSH_ASSIGN_DATE
You might need to create an approval task and have inserted, and then reassign and do some testing to find the actual value you need to search for.
Another note, any open task that is Rejected, Waiting, or Pending will be in the OTI table which should contain all these values.
-Kevin -
Programatically deleting the completed process instances
Hi,
I have too many completed process instances in my dev system. Deleting them using "Administration -> Archiving and Deleting" is very cumbersome and also giving lots of errors. Is it possible to delete all the completed/erroneous process instances programatically using GP API? If yes, could you please tell me what the class/package/api is? I searched through the API but did not find anything useful.
Thanks
RamHi David,
Thanks for the response. When I try to delete all process instances using the "Archiving and Deleting" tool, I get the below error. Looks like there is an error while loading all the process instances.
java.lang.NullPointerException
at com.sap.caf.eu.gp.ui.admin.arch.VProcessInstances.createAllInstanceElements(VProcessInstances.java:633)
at com.sap.caf.eu.gp.ui.admin.arch.VProcessInstances.loadAllInstances(VProcessInstances.java:502)
at com.sap.caf.eu.gp.ui.admin.arch.VProcessInstances.onPlugFromNavigation(VProcessInstances.java:234)
at com.sap.caf.eu.gp.ui.admin.arch.wdp.InternalVProcessInstances.wdInvokeEventHandler(InternalVProcessInstances.java:249)
at com.sap.tc.webdynpro.progmodel.generation.DelegatingView.invokeEventHandler(DelegatingView.java:87)
at com.sap.tc.webdynpro.clientserver.cal.ClientApplication.navigate(ClientApplication.java:826)
at com.sap.tc.webdynpro.clientserver.cal.ClientComponent.navigate(ClientComponent.java:881)
at com.sap.tc.webdynpro.clientserver.window.WindowPhaseModel.doNavigation(WindowPhaseModel.java:498)
at com.sap.tc.webdynpro.clientserver.window.WindowPhaseModel.processRequest(WindowPhaseModel.java:144)
at com.sap.tc.webdynpro.clientserver.window.WebDynproWindow.processRequest(WebDynproWindow.java:335)
at com.sap.tc.webdynpro.clientserver.cal.AbstractClient.executeTasks(AbstractClient.java:143)
at com.sap.tc.webdynpro.clientserver.session.ApplicationSession.doProcessing(ApplicationSession.java:299)
at com.sap.tc.webdynpro.clientserver.session.ClientSession.doApplicationProcessingStandalone(ClientSession.java:759)
at com.sap.tc.webdynpro.clientserver.session.ClientSession.doApplicationProcessing(ClientSession.java:712)
at com.sap.tc.webdynpro.clientserver.session.ClientSession.doProcessing(ClientSession.java:261)
at com.sap.tc.webdynpro.clientserver.session.RequestManager.doProcessing(RequestManager.java:149)
at com.sap.tc.webdynpro.serverimpl.defaultimpl.DispatcherServlet.doContent(DispatcherServlet.java:62)
at com.sap.tc.webdynpro.serverimpl.defaultimpl.DispatcherServlet.doPost(DispatcherServlet.java:53)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:760)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at com.sap.engine.services.servlets_jsp.server.HttpHandlerImpl.runServlet(HttpHandlerImpl.java:401)
at com.sap.engine.services.servlets_jsp.server.HttpHandlerImpl.handleRequest(HttpHandlerImpl.java:266)
at com.sap.engine.services.httpserver.server.RequestAnalizer.startServlet(RequestAnalizer.java:387)
at com.sap.engine.services.httpserver.server.RequestAnalizer.startServlet(RequestAnalizer.java:365)
at com.sap.engine.services.httpserver.server.RequestAnalizer.invokeWebContainer(RequestAnalizer.java:944)
at com.sap.engine.services.httpserver.server.RequestAnalizer.handle(RequestAnalizer.java:266)
at com.sap.engine.services.httpserver.server.Client.handle(Client.java:95)
at com.sap.engine.services.httpserver.server.Processor.request(Processor.java:160)
at com.sap.engine.core.service630.context.cluster.session.ApplicationSessionMessageListener.process(ApplicationSessionMessageListener.java:33)
at com.sap.engine.core.cluster.impl6.session.MessageRunner.run(MessageRunner.java:41)
at com.sap.engine.core.thread.impl3.ActionObject.run(ActionObject.java:37)
at java.security.AccessController.doPrivileged(Native Method)
at com.sap.engine.core.thread.impl3.SingleThread.execute(SingleThread.java:100)
at com.sap.engine.core.thread.impl3.SingleThread.run(SingleThread.java:170)
In my worklist, there are 2 workitems in erroneous category. When I try to open them by clicking the links, I get the error "Could not retrieve process instance: contact your system administrator". May be these 2 workitems are the reason for the above error.
I tried the "Global Settings" to delete the completed, erroneous and terminated processes after 1 day, but it doesn't seem to be working.
Thanks
Ram -
During the Process Instance Monitoring mechanism, the data generated as process instances execute is initially stored in the runtime database. How can I configure the monitoring information to go into a database or a local file?
Namrata,
The run time bean information is also stored in the default database pointbase of weblogic.You can point this database to any other database like Oracle ,db2 etc.You need to run the databse scripts which you can find in the installed directory.
You need to create a connectionPool,JNDI and need to use this JNDI name in the weblogic server Admin console.
Or you can change the default database setting during the domain creation.
Hope this helps you.
Regards
Bishnu -
Hello Dudes,
Is there a way where we can check the Integration process instances executed/running
till date.
Is there any way to achieve this.
Thanks in Advance
RajeshHello,
I have executed the integration process scenario and i checked in the transaction SWWL
with all possibilities but still no luck
FYI , i am working on PI7.0
Is some configuration missing any clue?
Thanks
Rajesh -
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
-Trimseems no way
-
If I want to review the complete process such as the business data, how can I retrieve it from the workspace? workspace only show me the status of the process, without the detail of the process, such as the business data.
Please advice.Hello -
Yes, we can review completed process by using archive viewer.
Please check this thread : Re: 10g BPM Archive Viewer
BR,
Justin. -
GP SP6: Find completion date of a process instance
Hi all,
We are using GP SP6. We want to find out the actual completion date of a particular process instance. Something like <i>getActualEndDate()</i> that's available in SP7.
Is there a way to do this?
Regards,
Satyajit.Hi Satyajit,
You can implement it in the following way:
<code>
InitialContext context = new InitialContext() ;
IReportingFactory reportingFactory = (IReportingFactory)context.lookup("/sap.com/com.sap.nw.eu.gp/ReportingFactory") ;
IBlockReporting reporting = reportingFactory.getBlockReporting(processId, processId, currentUser);
java.util.Date actualEndDate = reporting.getActualEndDate() ;
</code>
If process is running or active the end date is null.
As I remember it works correctly for completed processes. For cancelled processes it return null too.
DC: cafeugp~model
PP: process
Best regards,
Aliaksei -
How to access biz data of process instances in workspace at any time in 11g
Hi,
We are using Oracle BPM Suite 11g.
Our users want to be able to check and search the business data associated with the process instance at any time (i.e. even after the instance is completed. And the business data should be included in the task list or search result list in the BPM workspace.
I am new to Oracle BPM 11g. Please help. For the data to be displayed in the workspace, should I define them as “Process Data Objects”?
Regarding to how to display the data, I find something about Flexfield. But the Oracle document says the Flexfield is for the data that saved in human workflow database schema. When the process instance is completed, will the data in human workflow database for this instance be removed? Can I setup flexfield for the Process Data Objects?Hi Ramandeep,
Apparently I am not getting the required exception.
I have a TF that outputs an Invalid Region Site when I run it and the when I run it I only got the loading page image of ADF.
Looking at JDEV logs, I see an Invalid Region Site error
Here's what I did, I created a TF template with only one view in it like this.
<?xml version="1.0" encoding="windows-1252" ?>
<adfc-config xmlns="http://xmlns.oracle.com/adf/controller" version="1.2">
<task-flow-template id="TFTemplate">
<default-activity id="__7">errorPage</default-activity>
<exception-handler id="__14">errorPage</exception-handler>
<view id="errorPage">
<page>/com/test/errorPage.jsff</page>
</view>
<use-page-fragments/>
</task-flow-template>
</adfc-config>My error page as this:
<af:panelGroupLayout id="pgl1">
<af:outputText value="Error has occurred!" id="ot2"/>
<af:outputText value="#{pageFlowScope.MyErrorHandler.stacktrace}" id="ot1"/>
</af:panelGroupLayout>...and my bean.
public class MyErrorHandler
public String getStacktrace() {
ControllerContext context = ControllerContext.getInstance();
ViewPortContext currentRootViewPort = context.getCurrentRootViewPort();
Exception exceptionData = currentRootViewPort.getExceptionData();
if (currentRootViewPort.isExceptionPresent())
if(exceptionData!=null)
return exceptionData.getMessage();
return null;
}But exception data still returns null.
I exactly wanted to show this invalid region site but it seems I cannot catch it.
Any idea why? -
Access to BPM Task/Process CONTEXT data with the BPM Java API
Dear all,
is there a possible way to extract the content data from a process Instance? We want to read out all the data of the current intstances from a backend system. The API CE7.3 SP3 supports only (or we didn't find it) Instance Header data (like start-time,..)
Regards,
ChristianHi
There's no straight way to retreive process instance context variables.
But In my mind, there is a hack way - find appropriate tables in oracle db, where BPEM stores information about process instances and read it with jdbc. -
How to retrieve GP process context data by GP API
How can I retrivev the context data of GP process instance by using GP API, just like the funtionality in GP Monitor?
Hi,
Please check these links
http://help.sap.com/saphelp_nw04s/helpdata/en/45/01754e5ba20c4be10000000a11466f/content.htm
http://help.sap.com/saphelp_nw04s/helpdata/en/bd/996642c4764454e10000000a1550b0/content.htm
Thanks and Regards,
Prabhakar Dharmala -
Analysing Task Audit, Data Audit and Process Flow History
Hi,
Internal Audit dept has requested a bunch of information, that we need to compile from Task Audit, Data Audit and Process Flow History logs. We do have all the info available, however not in a format that allows proper "reporting" of log information. What is the best way to handle HFM logs so that we can quickly filter and export required audit information?
We do have housekeeping in place, so the logs are partial "live" db tables, and partial purged tables that were exported to Excel to archive the historical log info.
Many Thanks.I thought I posted this Friday, but I just noticed I never hit the 'Post Message Button', ha ha.
This info below will help you translate some of the information in the tables, etc. You could report on it from the Audit tables directly or move them to another appropriate data table for analysis later. The concensus, though I disagree, is that you will suffer performance issues if your audit tables get too big, so you want to move them periodically. You can do this using a scheduled Task, manual process, etc.
I personally just dump it to another table and report on it from there. As mentioned above, you'll need to translate some of the information as it is not 'human readable' in the database.
For instance, if I wanted to pull Metadata Load, Rules Load, Member List load, you could run a query like this. (NOTE: strAppName should be equal to the name of your application .... )
The main tricks to know at least for task audit table are figuring out how to convert times and determing which activity code corresponds to the user friendly name.
-- Declare working variables --
declare @dtStartDate as nvarchar(20)
declare @dtEndDate as nvarchar(20)
declare @strAppName as nvarchar(20)
declare @strSQL as nvarchar(4000)
-- Initialize working variables --
set @dtStartDate = '1/1/2012'
set @dtEndDate = '8/31/2012'
set @strAppName = 'YourAppNameHere'
--Get Rules Load, Metadata, Member List
set @strSQL = '
select sUserName as "User", ''Rules Load'' as Activity, cast(StartTime-2 as smalldatetime) as "Time Start",
cast(EndTime-2 as smalldatetime) as ''Time End'', ServerName, strDescription, strModuleName
from ' + @strAppName + '_task_audit ta, hsv_activity_users au
where au.lUserID = ta.ActivityUserID and activitycode in (1)
and cast(StartTime-2 as smalldatetime) between ''' + @dtStartDate + ''' and ''' + @dtEndDate + '''
union all
select sUserName as "User", ''Metadata Load'' as Activity, cast(StartTime-2 as smalldatetime) as "Time Start",
cast(EndTime-2 as smalldatetime) as ''Time End'', ServerName, strDescription, strModuleName
from ' + @strAppName + '_task_audit ta, hsv_activity_users au
where au.lUserID = ta.ActivityUserID and activitycode in (21)
and cast(StartTime-2 as smalldatetime) between ''' + @dtStartDate + ''' and ''' + @dtEndDate + '''
union all
select sUserName as "User", ''Memberlist Load'' as Activity, cast(StartTime-2 as smalldatetime) as "Time Start",
cast(EndTime-2 as smalldatetime) as ''Time End'', ServerName, strDescription, strModuleName
from ' + @strAppName + '_task_audit ta, hsv_activity_users au
where au.lUserID = ta.ActivityUserID and activitycode in (23)
and cast(StartTime-2 as smalldatetime) between ''' + @dtStartDate + ''' and ''' + @dtEndDate + ''''
exec sp_executesql @strSQLIn regards to activity codes, here's a quick breakdown on those ....
ActivityID ActivityName
0 Idle
1 Rules Load
2 Rules Scan
3 Rules Extract
4 Consolidation
5 Chart Logic
6 Translation
7 Custom Logic
8 Allocate
9 Data Load
10 Data Extract
11 Data Extract via HAL
12 Data Entry
13 Data Retrieval
14 Data Clear
15 Data Copy
16 Journal Entry
17 Journal Retrieval
18 Journal Posting
19 Journal Unposting
20 Journal Template Entry
21 Metadata Load
22 Metadata Extract
23 Member List Load
24 Member List Scan
25 Member List Extract
26 Security Load
27 Security Scan
28 Security Extract
29 Logon
30 Logon Failure
31 Logoff
32 External
33 Metadata Scan
34 Data Scan
35 Extended Analytics Export
36 Extended Analytics Schema Delete
37 Transactions Load
38 Transactions Extract
39 Document Attachments
40 Document Detachments
41 Create Transactions
42 Edit Transactions
43 Delete Transactions
44 Post Transactions
45 Unpost Transactions
46 Delete Invalid Records
47 Data Audit Purged
48 Task Audit Purged
49 Post All Transactions
50 Unpost All Transactions
51 Delete All Transactions
52 Unmatch All Transactions
53 Auto Match by ID
54 Auto Match by Account
55 Intercompany Matching Report by ID
56 Intercompany Matching Report by Acct
57 Intercompany Transaction Report
58 Manual Match
59 Unmatch Selected
60 Manage IC Periods
61 Lock/Unlock IC Entities
62 Manage IC Reason Codes
63 Null -
Problem:
When I plug in my iPhone to sync, it starts but does not complete the process and several pieces of data are not being transferred to my iPhone from my MacBook Air.
Any help that you can provide in helping my iPhone accurately sync with iPhoto and iTunes will be greatly appreciated.
Symptoms:
1) Sync: It’s not completing the sync. Below, I’ve provided all of my settings from the iTunes Summary tab so that you might tell me if I’ve selected any incorrect options. I prefer to sync the “old school” way – by connecting to the computer – as opposed to syncing over the cloud. Perhaps this is what’s causing the problem? Here is a list of the steps displayed in the iTunes window as the sync progresses:
waiting for sync to start (step 1 of 7)
backing up (step 2 of 7)
preparing to sync (step 3 of 7)
determining apps to sync (step 4 of 7)
preparing apps to sync (step 5 of 7)
importing photos (step 6 of 7)
waiting for changes to be applied (step 7 of 7)
syncing apps / copying 1 of 4 (App name) (step 7 of 7)
canceling sync
apple icon
2) Photos: I've selected only certain of my iPhoto albums to sync to my iPhone. All of the albums are correct/complete in iPhoto. All of the albums are listed on my iPhone, both before and after the sync, but the albums are empty (no actual photos) before and after the sync. Perhaps this is tied to the fact that the sync isn’t completing, but because “importing photos” is one of the steps that the incomplete sync displays, I don’t know.
3) Apps: When I launch iTunes and click on the Apps folder under the Library listing, then click on the Updates tab, iTunes searches for any Apps needing to be updated and provides a list. If I click on Update All, the Apps are successfully updated in iTunes. But, when I plug in my iPhone so that the updates will transfer to the apps on my iPhone, the updates don’t transfer to the apps on my iPhone and those apps still reflect that they need updating on the iPhone.
Other Potential Pertinent Info:
The flash memory hard drive on my MacBook Air recently died (perhaps a month or two ago). Apple had emailed me about a known issue and literally the next day, my MacBook Air crashed. I installed a new flash memory drive and re-installed everything from a backup off of an external hard drive. Everything seems to be working fine; it recreated accurately all of my software and data, including iPhoto and iTunes, the pictures and songs (respectively) for which are stored on that hard drive, as opposed to being on the flash memory in the MacBook Air itself. However, I don’t recall if the start of the sync problem described herein started happening at the same time that I replaced the flash memory drive. All I know is that the computer is working perfectly in all respects and that even as the sync is failing, it at least says that it’s doing the right things and looking in the right places (e.g., the list of albums on my iPhone matches the list of albums in iTunes, etc.).
Settings/Status:
MacBook Air
OSX v. 10.9
iPhoto ’11 v. 9.5 (902.7)
iPhone iOS 7.0.4
iTunes v. 11.1.3 (8)
Summary Tab
Backups (This Computer)
Options
Automatically sync when this iPhone is connected
Sync only checked songs and videos
Photos Tab
Sync Photos from iPhoto (429 Photos)
Selected albums, Events, and Faces, and automatically include (no Events)
Albums – 9 are selectedYou need to download iTunes on your computer. iOS 6 requires the latest version of iTunes which is 10.7.
-
In-Flight BPEL Process Instances not getting Completed
Hi,
I have BPEL P.M. 10.1.3.1.0 running. In BPEL Console I can see few process in
In-Flight BPEL Process Instances section. But in realty those process should be in completed section. When I login as bpeladmin in worklist application, I see those process are in completed status.
What can be issue? Any one come across this? Any patch available from metalink to resolve this?
Need help resolving this issue.
Regards,
JigarI see this too sometimes. In my case it's mostly due to the fact that the first activity that takes places after the callback fails. E.g. a transform that fails with a type error.
Check the bpel domain log file to find any errors in your bpel that's receiving the callback. There's probably something wrong with an assign or transform there.
The domain logfile can be found @: $ORACLE_HOME/bpel/domains/<your_domain>/logs/domain.log
HTH,
Bas -
11g BPM - Setting instance data of a running process instance
Hi,
What is the recommended pattern for interrupting a running process instance and changing an instance variable (data object) ?
Scenario is:
- process instance is launched with an interactive to look at the instance data
- an event is triggered, effectively interrupting the instance and changing the instance data
- next time the user opens the screen for the interactive the data has changed
Any help much appreciated.
cheers
TonyHi Dan,
Hope all is good with you. Thanks for the response.
I am using 11.1.1.6 and have tried a few things, one of which was using an event subprocess and correlations but it didnt change the Data Object as I expected. Maybe I got something wrong and will try again. So you expect the following to work:
- Create a simple process with one string data object, a correlation and one interactive showing the data object.
- Map the correlation to an input parameter
- Set the string data object to some initial value
- Create an event subprocess of the above in the automatic handler swimlane (starts with a message and ends with nothing)
- have the implementation of the start message take a string and an id
- map the id to the correlation
- map the string to the data object in the subprocess
- Create the simple process from Enterprise Manager passing in a correlation id
- View the interactive in the BPM Workspace and see the initial string
- Use EM to fire the event subprocess passing the same correlation id and a new string
- View the interactive in the BPM Workspace and see the new string
so, if you set the data object in the event sub process, it is the same value as the initial instance ? or have I misunderstood ?
I will give it another go, just checking my understanding...
cheers
Tony
Maybe you are looking for
-
Why can't install Oracle 8.1.7 in Redhat 7,1
Please see this page first: http://linuxfab.cx/indexEasy.php if you really want to install, please run these files first: compat-glibc-6.2-2.1.3.2.i386.rpm compat-egcs-c++-6.2-1.1.2.9.i386.rpm compat-libs-6.2-3.i386.rpm compat-egcs-6.2-1.1.2.14.i386.
-
I am not allowed to use Outlook email at my workplace. It seems that I cannot use only the Outlook calendar to sync my Iphone without making it my primary email client. I need to have a desktop calendar of some sort at my work in order to manage my a
-
S_ALR_87012172 - Customer Balances in Local Currency
Dear All I want insert some field in sap enhancement for S_ALR_87012172 - Customer Balances in Local Currency. If have any enhancement. Please advise. Regards Avijit
-
Hi, Getting a run-time error from a simple application: java.sql.SQLException: [Microsoft][ODBC Microsoft Access Driver] Too few parameters. Expected 1. The offending statement is: rs = stmt.executeQuery("SELECT usr,pwd,type FROM user_login WHERE usr
-
Updating TABLEA based on values in TABLEB
Hi: I have the two following tables. I want to write a query which updates fields in TABLE1 based on certain values in TABLE2 1. Update SEVERITY in TABLE1 with SVRT_CD in TABLE2 for all TABLE1.INCIDENT = TABLE2.TKT_NBR 2. Update ESCALATION in TABLE1