ASG
IBM
Zystems
Cressida
Icon
Netflexity
 
  MQSeries.net
Search  Search       Tech Exchange      Education      Certifications      Library      Info Center      SupportPacs      LinkedIn  Search  Search                                                                   FAQ  FAQ   Usergroups  Usergroups
 
Register  ::  Log in Log in to check your private messages
 
RSS Feed - WebSphere MQ Support RSS Feed - Message Broker Support

MQSeries.net Forum Index » Workflow Engines - IBM MQ Workflow & Business Process Choreographer » Audit_Trail Table...

Post new topic  Reply to topic
 Audit_Trail Table... « View previous topic :: View next topic » 
Author Message
SteelHawk
PostPosted: Wed Jul 23, 2003 1:28 pm    Post subject: Audit_Trail Table... Reply with quote

Novice

Joined: 23 Jul 2003
Posts: 10
Location: Mexico City

Someone know How can I extract the data from the BLOB field CONTAINER_CONTENT in the AUDIT_TRAIL database table ???...

Thank you for your help..
Back to top
View user's profile Send private message
jmac
PostPosted: Wed Jul 23, 2003 2:02 pm    Post subject: Reply with quote

Jedi Knight

Joined: 27 Jun 2001
Posts: 3081
Location: EmeriCon, LLC

Steel:

I've not tried this but I suspect that you would use the ExecutionService::reanOnlyContainerFromStream() method to rebuild a container object from the byte array.

IF you try this PLEASE post your results.

GOOD LUCK
_________________
John McDonald
RETIRED
Back to top
View user's profile Send private message Send e-mail Visit poster's website AIM Address Yahoo Messenger MSN Messenger
Andy
PostPosted: Wed Jul 23, 2003 9:00 pm    Post subject: Reply with quote

Centurion

Joined: 14 May 2003
Posts: 122

jmac wrote:
I've not tried this but I suspect that you would use the ExecutionService::reanOnlyContainerFromStream() method to rebuild a container object from the byte array.

I didnt know if there are APIs available to extract data from AUDIT_TRAIL table or I didnt understand the problem. Could somebody explain it to me please?
_________________
Andy
Back to top
View user's profile Send private message
jmac
PostPosted: Thu Jul 24, 2003 4:33 am    Post subject: Reply with quote

Jedi Knight

Joined: 27 Jun 2001
Posts: 3081
Location: EmeriCon, LLC

Andy:

There is no API to extract data from the AuditTable... But the contents of the Global Container is written to an audit record as a blob, which as I stated I believe can be made readable via ExecutionService::reanOnlyContainerFromStream()
_________________
John McDonald
RETIRED
Back to top
View user's profile Send private message Send e-mail Visit poster's website AIM Address Yahoo Messenger MSN Messenger
SteelHawk
PostPosted: Tue Jul 29, 2003 9:16 am    Post subject: Reply with quote

Novice

Joined: 23 Jul 2003
Posts: 10
Location: Mexico City

Thanks for your ideas, i´ll try it .....i found another way let me explain it, in the Buildtime you can choose the processes you want to extract, and send the data structure to the Global Data Container(GDC), this one create a GC_table with all the information in character field type and you can do a SQL query for all the data structure.

i hope this will usefull to someone...
Back to top
View user's profile Send private message
Andy
PostPosted: Wed Jul 30, 2003 12:38 am    Post subject: Reply with quote

Centurion

Joined: 14 May 2003
Posts: 122

Its useful information... but we should also keep in mind that GDC data structure should be kept small because it is written in AUDIT_TRAIL table. So large data would be an overhead on workflow server if database audit is on.
Also, its not good idea to query runtime database. I am not sure if its also true for GDC table.
Thanks
_________________
Andy
Back to top
View user's profile Send private message
MaheshPN
PostPosted: Fri Aug 01, 2003 10:44 am    Post subject: Audit_Trail Table... Reply with quote

Master

Joined: 21 May 2003
Posts: 245
Location: Charlotte, NC

Hi SteelHawk,

I was trying to use GC_table to get the global container data.
As you see there will be one entry for each process instance and there is on field PIID(character type) is null/bank. Since I need to use the data present in that(GC Fields) in run time for the same process instace I need to find which entry is belongs to perticular process instace, so that i can query the table. Hope you have understood my problem. If you done some thing like this let us know.

Thanks,
Mahesh

IBM Certified Solution Expert - MQWorkflow
Back to top
View user's profile Send private message
dkrawczynski
PostPosted: Sun Aug 03, 2003 5:35 pm    Post subject: Reply with quote

Apprentice

Joined: 19 Dec 2002
Posts: 26
Location: Dallas, TX

You can join the GC_... table to the process instance table using the PIID column to get a view of the global container data for each process instance. The PIID column looks empty using a normal query because it contains binary data stored in a character field. If you want to view the values of any of the "ID" fields in the Workflow database wrap the column name with the hex() function.

Ex. select hex(PIID),hex(BIID) from fmc.process_inst pi, fmc.gc_mars_data gc where gc.piid = pi.biid
_________________
Doug Krawczynski
IBM Certified Solutions Expert -
MQSeries Workflow
Back to top
View user's profile Send private message Send e-mail Visit poster's website
Display posts from previous:   
Post new topic  Reply to topic Page 1 of 1

MQSeries.net Forum Index » Workflow Engines - IBM MQ Workflow & Business Process Choreographer » Audit_Trail Table...
Jump to:  



You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
Protected by Anti-Spam ACP
 
 


Theme by Dustin Baccetti
Powered by phpBB © 2001, 2002 phpBB Group

Copyright © MQSeries.net. All rights reserved.