How to get current suspended message ID from context

Hi all,
I'm trying to get the Suspended Message Id from my orchestration.
I don't want to get the this inside the orchestration, because that I already know how to do it.
I've search inside this forum and get a solution, but actually does not work. 
Using this: Microsoft.XLANGs.Core.Service.RootService.InstanceId  
(http://social.msdn.microsoft.com/Forums/en-US/95d2c9d9-5cbe-4bca-9cef-da7aba984d3c/how-do-i-access-instance-id-of-a-message-from-orchestration?forum=biztalkgeneral)
Also, I have searched in "all" properties of Microsoft.XLANGs.Core.Service.RootService and didn't had any luck
My goal?
I have a service that logs, to SQL, all errors in my biztalk applications. Right now is not saving the message id, and I do need.  (I can easily change the method to receive the message id, but I'm trying to avoid that because I have 30 applications
using the same method/application).
Also, I have another service that is listening to all suspended messages.. In here I have the message Id (and other data) using WMI... 
Now, I need to correlate both info..
Any help would be appreciated
Ricardo Bessa

Hi,
Thanks for the reply. My answers inline.
I already understood the logic that you said and I'm working on it. However, if you have more good inputs to give, please do! 
Thanks
Hi Ricardo,
Let us be clear with your requirement.
“I
have another service that is listening to all suspended messages.. In here I have the message Id (and other data) using WMI... ” 
- What this “service” is? Is this some service external to BizTalk from where you want to access the detail of the suspended message? If so then you go to use some way similar to my earlier reply. When you want to access the suspended message details,
you got to access it from management db. The code which I have given in my earlier reply would do that. No other option in this case.
Yes, I am already doing that. I'm using a Windows service that is listening for all suspended messages in BizTalk. In this
windows service I can access to everything that I want (message Id; service type id; instance id; and many other properties...). My issue is not in here.
“Actually
when i call Microsoft.XLANGs.Core.Service.RootService.InstanceId I'm getting the property SendingOrchestrationID.” 
- Are you try to access the message Instance ID from another child orchestration?
SendingOrchestrationID is the orchestration instance
ID where the message originated and you would get it when another orchestration (subprocess) which has been triggered by another orchestration (parent orch whose ID is
SendingOrchestrationID). Detail us about where and how
to you get this SendingOrchestrationID.
Because when you want to access “Suspended” Orchestration’s message instance ID, you can’t achieve it by calling it from sub-processes.
I'm using a external (custom) class library. 
I have a custom log which tracks everything that goes in our BizTalk applications. When errors / warning I write that to a database table.
This is made in different times, so when I log the error to the database I need "something" that exists in my other service (MEssageID; service type
id; instance id; or other 'unique' property). Also, I don't want to change the log method, because (if I do that, I would need to change 30 applications).
That's why I'm looking for a 'global' property that I can use, without changing (a lot) my code.
When an Orchestration is suspended, it will be marked as “Suspended” in db and to get the messages associated with it, access the suspended Orchestration instance
ID from the db and use this ID from db to get its related contents/messages IDs.
If this answers your question please mark it accordingly. If this post is helpful, please vote as helpful by clicking the upward arrow mark next to my reply.
Ricardo Bessa

Similar Messages

  • How to get current/present version guid from CRMD_ORDERADM_H ?

    Hi,
    Can any one tell me  how to get the current version guid value from CRMD_ORDERADM_H table for Business Object type 'BUS2000113' .
    For example for one contract if we have more than one version then how to get the latest version guid from this table?
    If I use FM ' BBP_PD_CTR_GETDETAIL'  and in version table how to know which one is the latest/current version?
    Need information for versions.
    Thanks a lot.
    Kevin.

    Hello Kevin,
           In FM  <b>' BBP_PD_CTR_GETDETAIL'</b> look at version table <b>E_VERSION</b> - Here you can check 'VERSION_' or there is another field 'CREATED_AT' - by using these you will get latest version.
    Regards,
    Shiv

  • How to get pl/sql message information from apex

    - APEX version = 4
    - DB version and edition = 10g
    - Web server architecture = OHS
    - Browser(s) used = I.E. 8
    - Theme = #5 opal
    - Templates
    - Region/Process type
    I am having a lot of trouble debugging in apex, if I was working with oracle forms I would use the debugger or show
    messages to the screen. I can use the alert("message text"); in javascript to put out a message to the screen. How
    can I put out a message from a pl/sql area in apex?
    Any help would be appreciated.
    Thank you

    What is wrong with the methods provided in your previous thread on this topic?
    {thread:id=2146189}
    Why start a new thread instead of continuing that discussion?

  • How to get full SOAP message sent from XI to web srvice

    Hi guys!
    In my scenario IDoc->XI->SOAP I need to see the SOAP message, which arrives into target web service. Where can I see it? I suppose in sxmb monitor, but which part? I can not find it...
    Thanx, Olian

    In MONi you will only be able to see the XML payload or rather the SOAP Body.
    If you want to see the entire HTTP post message used by the SOAP adapter will the SOAP Enevlope you need to use either,
    1. The TCP Gateway as shown in Stefan's Blog
    or,
    2. Follow the instructions in this thread. You would need to turn on Synch Logging in the Visual Admin for this though,
    Monitoring SOAP Message Payload
    I would suggest you follow Stefan's blog as it is quite simple rather than turning on Synch Logging in the Va.
    Regards
    Bhavesh

  • How to get current assigned participant id?

    Hi mates,
    This might be a basic questions, but useful for me :)
    How to get current assigned participant id from screenflow? Or How to pass it as an argument from interactive activity?
    Below is what I tried.
    Participant.id or Instance.participant.id - returns login user id
    Thanks

    Hi,
    Please correct me if I understood wrong.
    You want to know whether an instance is assigned or not and if assigned then you want to fetch the assigned participant id.
    If this is your requirement then please find the code below and make the necessary changes into it.
    Write the following code in screen flow automatic activity but before that you need to pass the instanceid as argument to the screen flow.
    In the process as well as screen flow layer make an instance variable instanceid as Int.
    Then make an argument variable instanceidArg as Int in both the screenflow and process layer and map accordingly so that it will take the instanceid from process layer to the screen flow layer.
    Assign instanceid = id.number; in process layer automatic activity but before the global interactive activity where you have maped the screen flow.
    Write the following code in screen flow automatic activity.
    logMessage("============= instanceid ==============" + instanceid); //instanceid is the id of the instance that you have passed from process layer.
    ProcessService ps;
    InstanceFilter instF = InstanceFilter();
    ps.connectTo(url : Fuego.Server.directoryURL, user : "<userid>", password : "<password>"); //In studio the userid and password will be same
    logMessage("Connected");
    instF.create(processService : ps);
    instF.searchScope = SearchScope(participantScope : ParticipantScope.ALL, statusScope : StatusScope.ONLY_INPROCESS);
    //<ProessId Name> is the id of the process where you want to know the assighed participant id
    instF.addAttributeTo(variable : VarDefinition.processid, comparator : Comparison.CONTAINS, value : "/" + "<ProessId>");
    instF.addAttributeTo(variable : VarDefinition.INSTANCE_NUMBER, comparator : Comparison.IS, value : Int(instanceid));
    Fuego.Papi.Instance[] instances = getInstancesByFilter(ps, filter : instF);
    foreach (instance in instances) {
    logMessage("Assigned ?: " + instance.participantId.empty);
    logMessage("instance.participantId: " + instance.participantId);
    ps.disconnectFrom();
    Bibhu

  • How to get current time and date??

    How to get current time and date from my PC time and date to the java application??
    i use java.util.* package but got error, that is:
    - java.util.* and java.sql.* class are match
    - abstract class cannot be instantiated
    so what can i do, pls guide...thanks...

    There is a method in the System class that will return the current system time. You could also instantiate a Date, Time, Timestamp, or Calendar object, all of which get created with the system time by default.
    Don't import *. Import the specific classes you need.
    Next time, post the actual text of the exceptions/compile errors. If you make people guess, most just won't bother.

  • How to get the XML messages from JMS Queue in BPM

    I have one requirement in my application.we are sending XML messages to the JMS Queue.How to get the XML messages from JMS Queue and how to Extract the details from XMl.
    can you please send me the code to get the XML messages from the JMS Queue.
    Thank you,

    Hi,
    Sure others will have some other ideas, but here's what I typically do to get the XML from a JMS queue. Inside the Global Automatic that pops the messages off the queue you'd have logic similar to this:
    artifactInfoNodes as Any[]
    xmlObject as Fuego.Xml.XMLObject = XMLObject()
    load xmlObject using xmlText = message.textValue
    . . . Once you have this, it's a matter of deciding what you want to do with the message. Most times you'll parse the XML (using XPATH statemens), set argument variables and create a work item instance.
    Hope this helps,
    Dan

  • How to get the Error message from hr_contact_rel_api.create_contact

    Hello All,
    I am using this API for creating a contact for an employee in R12.
    But, some times i am not able to create the contact successfully, and Unable to figure out proper reason for record erroring out.
    I dont find any out msg data variables for this API in order to check it for the Error.
    So, can any body help me how to get the ERROR Message for such APIs.
    Thanks inAdvance,
    Amarnadh Js

    user12243334 wrote:
    solved the issue on myselfIt would be nice if you could share the solution with us.
    Thanks,
    Hussein

  • How to get the default selection color from JTable

    Hi, there,
    I have a question for how to get the default selection color from JTable. I am currently implementing the customized table cell renderer, but I do want to set the selection color in the table exactly the same of default table cell renderer. The JTable.getSelectionBackgroup() did not works for me, it returned dark blue which made the text in the table unreadable. Anyone know how to get the window's default selection color?
    Thanks,
    -Jenny

    The windows default selection color is dark blue. Try selecting any text on this page. The difference is that the text gets changed to a white font so you can actually see the text.
    If you don't like the default colors that Java uses then use the UIManager to change the defaults. The following program shows all the properties controlled by the UIManager:
    http://www.discoverteenergy.com/files/ShowUIDefaults.java
    Any of the properties can be changed for the entire application by using:
    UIManager.put( "propertyName", value );

  • How to get current rowindex of clicked object in cr2008 preview control

    hi
    i want to get selected raw data when user click on crystal report 2008 preview control.
    i can achieve using following code for particular row no.
    Dim repReport as new ReportDocument
    repReport.Rows(RowIndex).Item(ColumnIndex)
    how to get current rowindex ? 
    Thanks
    Sanjiv Sharma

    Only way I can think of is to use the rowset controller from the InProc RAS SDK. Here is a snippet of a sample code on how to:
    //Load the report
    if (clientDoc != null) {
    //create metadata structure
    RowsetMetaData rowSetMetaData = new RowsetMetaData();  rowSetMetaData.setDataFields
    (clientDoc.getDataDefinition().getResultFields());
           Fields fields = rowSetMetaData.getDataFields();
           String colName,colTypeName;
           int colType, len;
           Field field;
           HashMap colNames = new HashMap();
           HashMap colTypes = new HashMap();
           for (int i = 0; i < fields.size(); i++) {
                   field = (Field) fields.get(i);
                   colName =field.getDisplayName(FieldDisplayNameType.description, Locale
    .ENGLISH);
                   colNames.put("COL"+i,colName);
           colType = getColTypeFromVariant(field.getType().toVariantTypeString());
           len=field.getLength();
                  //Placeholder
            //add column metadata to data structure or XML
            Object colValue;
            int rowCount=0;
            if (getMaxRows() != 0) {
                   RowsetCursor rowsetCursor = clientDoc.getRowsetController(). createCursor
    (null, rowSetMetaData);
                  //Setting the batch size to make sure that you get back all the
                  //rows by setting the batch size.
                        clientDoc.getRowsetController().setRowsetBatchSize (rowsetCursor
    .getRowset().getTotalRecordCount());
               //Getting the Results back starting from the first row
               RowsetCursor resultCursor = clientDoc.getRowsetController(). createCursor(null,
    rowSetMetaData);
               resultCursor.moveTo(0);
                  while (!resultCursor.isEOF()) {
                      for (int i = 0; i < fields.size(); i++) {
                               colName=(String)colNames.get("COL"+i);
                               colTypeName=(String)colTypes.get("COL"+i);
    colValue=record.getValue(i);
                                //Placeholder
    //add row data to data structure or XML
    resultCursor.moveNext();
    For more details, consult the Report Application Server .NET SDK Developer Guide
    Ludek
    Follow us on Twitter http://twitter.com/SAPCRNetSup
    Got Enhancement ideas? Try the [SAP Idea Place|https://ideas.sap.com/community/products_and_solutions/crystalreports]

  • How to get Current row of ViewObject in the DoDML methode

    Hi all
    I have two ViewObject EmplyesView and DeptView
    How to get Current row of ViewObject DeptView in the DoDML methode of EmplyesView

    OK, we can play this game on and on...
    I'll ask for a use case (http://en.wikipedia.org/wiki/Use_case) and you don't give any info we don't already know. After an other 10 posts we probably know what you real problem is and can give you the advice which you could have gotten in the fist place.
    So please take some time and describe the problem as if you would ask your mother for help. Tell us how the data model is build and how the VO are related. Is there any input from an user involved? Which information from the other view do you need? How do you get to the doDML method? Is there a button in the ui involved?
    Timo

  • How to get current IUser (com.sapportals.portal.security.usermanagement)

    Hi,
    does anybody know how to get IUser for the current user?
    I know how to get current IUser from com.sap.security.api package:
    IWDClientUser wdcu = WDClientUser.getCurrentUser();
    IUser sapUser = wdcu.getSAPUser();
    but I need to have IUser from com.sapportals.portal.security.usermanagement package.
    Regards,
    Ladislav

    Ladislav,
    Try this:
    Get the IUser uisng the API com.sap.security.api.IUser and store it in a variable, say <i>sapUser</i>.
    Then,
    // Convert the logged in user to old EP5 usermanagement API
    com.sapportals.portal.security.usermanagement.IUser user = null;
    try
         com.sapportals.portal.security.usermanagement.IUser user = WPUMFactory.getUserFactory().getEP5User(sapUser);
    catch (UserManagementException e)
         e.printStackTrace();
    Bala

  • Urgent : How to get current user id

    Hello,
    fnd_global.user_id returns -1
    fnd_profile.get('user_id',x_user_id) return null
    can anyone help how to get current logged in user to apps.
    Regards,
    Dinesh.

    Hi Dinesh,
    You must also make sure you have initialised the app.
    If you run this from sqlplus then it will return -1.
    If however you run this from within a concurrent program then the user id will be returned.
    Try using this from sqlplus fnd_global.apps_initialize
    Eg.
    begin
    dbms_output.put_line(fnd_global.user_id);
    fnd_global.apps_initialize(user_id => 3551,
    resp_id => 1,
    resp_appl_id => 1);
    dbms_output.put_line(fnd_global.user_id);
    end;
    /

  • How to transfer contacts and message history from samsung note 3 to iphone 6 plus

    Can anyone please help: how to transfer contacts and message history from samsung note 3 to iphone 6 plus?

    You can visit : Move content from your Android phone to iPhone
    From this Apple Support website, you can get information about how to transfer contacts, music, photos, videos,  documents, and more from your Android phone to iPhone. But for text messages, you may need other tool.

  • How i get data in matrix grid from A/P Invoice

    How i get data in matrix grid from A/P Invoice before click add button

    Hi,
    Are you trying to read the data in the matrix of a system form? Then you only have to look for the matrix with the ID you can see by visualising the System Information in B1 and then directly read from the matrix cells (using columns element in matrix), the DBDataSources are not filled in until the document has been added to the database.
    There are many messages in this forum talking about how to read information in matrix item, just make a search for it.
    Hope it helps
    Trinidad.

Maybe you are looking for

  • Icons grayed out in SAP R/3 GUI iview

    The problem is when some people run the SAP R/3 GUI iview from EP5 and EP6, some of the icons are grayed out, such as the "create new session" icon, although you can create a new session from the system menu.  When I run the iview, I see all icons as

  • Display non-english characters in its own corresponding language in excel

    Hello Experts, I have description texts in chinese and other languages which is visible properly in the debugger in my internal table. After downloading the data into an excel sheet into my file path, when opened the non-english description is displa

  • Help. Scripts in Tools menu in Bridge have vanished

    I'm not sure if this is the appropriate forum to place this message, but I need some help, so here goes: I have CS2 installed on a G5 dual 2 Ghz, with 1 GB RAM. When in Bridge, under the Tools menu where there should be 3 submenus for Photoshop, Illu

  • Current Condition Record value of JVCS not picking while GR posting

    Dear All, Tax Procedure being used is TAXINN Scheduling Agreements are created before 01.06.2008. Condition Record with validity periods for JVCS (A/P CST NonDed-VAT) is as follows, 01.04.2007 TO 31.05.2008 = 3% 01.06.2008 TO 31.12.9999 = 2% If Goods

  • Move file dropped in a folder?

    ok, let's start here then, what automation setup do i need to have a file that is dropped into "music download" moved into "archive", so that when a file is dropped in the folder, this automation is triggered, also, it will be from a download, so i n