Method to retrieve event at runtime

Hello All,
I have a situation where it is required to get the event name at runtime. There is a requirement to call a subworkflow in a main workflow. Here we have situation to call different task according to the "Event triggered" at that time.
Do we have any existing method to call the event. If not how to retrieve the event name at runtime
Note : The event is different form the event(wi_initiator) which is called at the time of workflow starts.
Thanks in advance.
Pritam

Hi Pritam,
I think you need to clarify. What do you mean by 'Event triggered'? You say you don't need the original event which started the workflow, so I am lost which event you mean then.
Regards,
Martin

Similar Messages

  • Call AM method on ActionComponent  events

    Hi ,
    i need to perform some action like calling AM method ,isUserValid() tio check if user is valid or not on
    clicking action components like commandbutton and commandlink.
    i can archive this by adding PagePhaseLsitener ,and in beforePahseListener.
    i can handle action event update model process Phase.
    but the issue is i need to execute the AM method only actioncomponet event processing phase
    how to we know the event was generated by Action Component?
    please suggest
    Thanks,
    Karnakar

    Hi all
    requirement is to call AM method on clicking action compoents.
    and every page in application will call the above methods.
    i am overriding action component behiavour ,on clicking of actioncomoent it will execute AM method
    Thanks
    Karnakr

  • METHOD FOR RETRIEVING FREE HARD DISK SPACE!

    Hi!
    I would like to know if there is any (standard or not) CLASS with methods for retrieving the amount of free hard disk space. I would appreciate if you could help! Thanks a lot!
    Best regards,
    Pedro Le�o

    for which os?
    because java must run on all operating systems no method is implemented (as far as i know). so you must call a system-program (or script) to do the work.

  • Access method and wait event

    hi,
    i am confused about access method and wait event.
    is there any relation between access method and wait event?

    sb92075 wrote:
    is there any relation between access method and wait event?No relationI disagree. If access method is full table scan or fast full index scan, that's likely to cause db file scattered read waits, whereas an index driven access method such as index range scan will likely cause db file sequential read waits.
    -Mark

  • Retrieving "Method Profiling Sample" event duration

    Hello,
    I am trying to understand how JMC calculates the Percentage in Hot Methods (which according to documentation is total time that the application spent on executing code in the method), but the duration I retrieve seem to be always zero and start and end timestamps are the same. The way I am trying to do it follow below:
    FlightRecording recording = FlightRecordingLoader.loadFile(new File("jfr file path"));    
    IView view = recording.createView();
    Map <String, IEventType> eventTypes =  new HashMap<String, IEventType>();
    for (IEvent event : view) {
         eventTypes.put(event.getEventType().getName(), event.getEventType());
    view.setEventTypes(Arrays.asList(eventTypes.get("Method Profiling Sample")));
    for (IEvent event : view) {
         System.out.println(event.getValue("(duration)") + " " + ((FLRMethod)event.getValue("((stackTrace).method)")).getMethodName());
    Any clarification is highly appreciated!
    Thanks in advance.

    The Method Profiling Samples do not have a duration,
    they are taken at interval of for example 20 ms, where a predefined number of threads are sampled.
    All threads cannot be sampled, for example the ones that are executing native code.
    It's really "the percentage of the total  number of samples that were taken in this method", which can be seen as an approximation of what the help says "The percentage of total time that the application spent on executing code in the method."
    To get this we group together all the samples with the same top frame, there is not one single sample for each method with a total duration for that method.
    If you look at the Events/Log, and only enable Java Virtual Machine/Profiling/Method Profiling Sample in the event types view, you will be able to see what kind of data you get.

  • One Q about retrieving event description

    let's say I can already retrieve a "javax.tv.service.guide.ProgramEvent" object, now I want to get its description.
    wat should i do? how to use
    SIRequest retrieveDescription(SIRequestor requestor)
    this method? it doesn't return a string description.
    thanks. or maybe there is a totally different way of doing it. how?

    Tis works in the same way as all of the other retrieveXXX() functions i the javax.tv.service packages. it's an asynchronous operation, so you need to wait for the middleware to call the notifySuccess() method on the SIRequestor that you passed it. This will give you the results fo the request, which will be a ProgramEventDescription object.
    Of course, there's no guarantee that an event will have a description associated with it, and so the description that you get back may just be an empty string.
    Steve.

  • How to call a bean method from javascript event

    Hi,
    I could not find material on how to call a bean method from javascript, any help would be appreciated.
    Ralph

    Hi,
    Basically, I would like to call a method that I have written in the page java bean, or in the session bean, or application bean, or an external bean, from the javascript events (mouseover, on click, etc...) of a ui jsf component. I.e., I would like to take an action when a user clicks in a column in a datatable.
    Cheers,
    Ralph

  • How to call a static method from an event handler

    Hi,
       I'm trying to call a static method of class I designed.  But I don't know how to do it.  This method will be called from an event handler of a web dynpro for Abap application.
    Can somebody help me?
    Thx in advance.
    Hamza.

    To clearly specify the problem.
    I have a big part code that I use many times in my applications. So I decided to put it in a static method to reuse the code.  but my method calls functions module of HR module.  but just after the declaration ( at the first line of the call function) it thows an exception.  So I can't call my method.

  • How to determine triggering event at runtime

    Hello,
    I was wondering how it is possible to determine which event was triggered to initiate a workflow.  I have a basic workflow that may be started via several events and would like to be able to determine within a method which event was the actual trigger.
    The key is to make this determination within the first standard task that is called after the event is triggered.  I thought I would be able to make this work by reading SWWLOGHIST using the top level WI_ID and method 'SWW_WI_CREATE_VIA_EVENT_INTERN' (event name is in PARA_VAL2 field).  This approach does not seem to work however and was wondering what the syntax would be to provide this value.
    Thanks in advance,
    Adam

    Hi,
    In the workflow header in the Version Independent(task) -> Start Event tab, Add the follwowing Binding
    &_EVT_NAME&  -> &eventname&
    (Where eventname is a container with HRS1212-EVENT type)
    You can use this as an import parameter in your method and utilize it.
    Regards
    Gautam

  • Methods for Remote Event Log Collection (WMI vs RPC vs WinRM)

    Hi,
    I'm currently evaluating several 3rd party tools (SIEMs) to help me with log management in a large (mostly) Windows domain environment. Each tool uses a different approach to collecting the event log from remote systems, and I'd like help understanding the
    pros and cons of each approach. I've dropped this in the scripting forum as the tools are essentially running different scripts and it's this part I would like to understand.
    WMI: An agent installed on a windows server connects to each monitored box and grabs their event logs via WMI. Our legacy SIEM already collects from over 2000 servers using this method.
    RPC: As above, but using RPC. No changes required on the remote machines.
    WinRM: An appliance integrates with AD and collects event logs remotely using WinRM. This is reasonably new to me (i'm a security guy, not a sys admin) but I seem to have to enable an additional remote management tool, and open a new listening port on every
    single machine I want to collect the event log from.
    I read the following blog entry, which seemed to indicate that RPC was the best choice for performance, considering I'm going to be making high frequency connections to over 2000 targets:
    http://blogs.technet.com/b/josebda/archive/2010/04/02/comparing-rpc-wmi-and-winrm-for-remote-server-management-with-powershell-v2.aspx 
    However, everything I have found on the subject of remote event collection seems to suggest that WinRM is the "approved" method for event log collection. The vendor using the WinRM approach is also suggesting that it is the only official MS supported
    way of doing this.
    So I would like to ask, is there a reason that WMI and RPC should not be used for this purpose, since they clearly work and don't require any changes to my environment? Is there some advantage to WinRM that justifies touching my entire estate and opening
    an additional port (increasing my attack surface)?
    Thanks in advance,

    Hi,
    I'm aware of the push method, and may indeed move to it in time, although I'm just as likely to install a 3rd party agent on the machines to perform this role with greater functionality and manageability for the same effort. I've only seen organisations
    using commercial agents (snare, splunk, etc) or WMI for log collection in practice, so I don't think I'm the only one with reservations about it.
    Anything that involves making configuration changes to a large and very varied estate is not something to do lightly. Particularly if alternatives exist that don't require this change to be carried out immediately. That is why I'm looking to properly understand
    the pros and cons of these "legacy" approaches for use as an interim solution if nothing more.
    Pulling probably is more resource intensive, although I've not seen an actual comparison, but it's not really that fragile in my experience. If a single pull fails, you just collect the logs you missed at the next pull cycle in a few seconds/minutes.
    All logs are pulled directly into a SIEM for analysis, so that part is covered.
    Anyway, I appreciate the input, but I'm still holding out for concrete reasons to move away from WMI/RPC or to embrace WinRM. Bear in mind I'm considering fixing something that doesn't look broken to me!
    Cheers,

  • Trade Management 12.1.3 -Link Settlement Method to SLA Event Type Code

    Hi
    We have trade management 12.1.3 installed that uses the SLA Accounting.
    In claims, we have several custom settlement methods and we want to define our own Event Types in SLA and use that to create accounting.
    How can the settlement method in Trade Mgt be linked to the Event Type codes in SLA

    I have find the answer for my Question...
    We can have 2 columns in ozf_funds_utilized_all_b. product_type and Product_id.
    If product_type is Family then Product_id would be the Item Category ID.
    If Product_type is Product then Product_id would be the Inventory_item_id.
    Thanks,
    Ram

  • Problems with using System.Diagnostics.EventLog to retrieve event log messages

    Hi
    In my app I am retrieving error and critical events from application and system log - but for some reason what it is returning doesn't tally with what I see in event viewer
    For example:-
    1) Source is SideBySide and shows in event viewer with Event ID of 33 - but in my app it is returning an event ID of 3238068257 - all other details such as message are correct - other event sources show fine
    2) A lot of the system event log messages are showing wrong error message - in event log it shows correctly but in my app it is retrieving messages like this "The description for Event ID '41' in Source 'Microsoft-Windows-Kernel-Power' cannot be
    found. The local computer may not have the necessary registry information or message DLL files to display message, or you may not have permission to access them" - I am running the app with admin rights?, so not sure why not showing same message as it
    shows in event viewer i.e "The system has rebooted without cleanly shutting down first. This error could be caused if the system stopped responding, crashed, or lost power unexpectedly."
    Darren Rose

    Private Sub btnCheckEventLog_Click(sender As Object, e As EventArgs) Handles btnCheckEventLogs.Click
    ' get event logs
    ' APPLICATION LOG
    ' variables for adding to the listview application log
    Dim ListEventlogApp As ListViewItem
    Dim arrayEventlogApp(5) As String
    ' Clear existing items from list
    lvwEventLogApp.Clear()
    ' Create columns and set width
    lvwEventLogApp.Columns.Add("Date/Time", 120)
    lvwEventLogApp.Columns.Add("Type", 50)
    lvwEventLogApp.Columns.Add("Source", 150)
    lvwEventLogApp.Columns.Add("ID", 100)
    lvwEventLogApp.Columns.Add("Message", 1000)
    ' get event log (application) error entries
    Dim eventLogAppError As New System.Diagnostics.EventLog("Application")
    Dim eventCntr1 As Integer = 1
    Dim numberofeventstoshow1 As Integer = 1
    For i As Integer = eventLogAppError.Entries.Count - 1 To 0 Step -1
    Dim eventLogAppErrorEntry As EventLogEntry = eventLogAppError.Entries(i)
    If eventLogAppErrorEntry.EntryType.ToString = ("Error") Then
    arrayEventlogApp(0) = (eventLogAppErrorEntry.TimeGenerated)
    arrayEventlogApp(1) = (eventLogAppErrorEntry.EntryType.ToString)
    arrayEventlogApp(2) = (eventLogAppErrorEntry.Source)
    arrayEventlogApp(3) = (eventLogAppErrorEntry.InstanceId)
    arrayEventlogApp(4) = (eventLogAppErrorEntry.Message)
    ListEventlogApp = New ListViewItem(arrayEventlogApp)
    lvwEventLogApp.Items.Add(ListEventlogApp)
    eventCntr1 = eventCntr1 + 1
    If numberofeventstoshow1 = 10 Then Exit For ' amend if you want to show more than 10 events
    numberofeventstoshow1 = numberofeventstoshow1 + 1
    End If
    Next
    ' SYSTEM LOG
    ' variables for adding to the listview application log
    Dim ListEventlogSys As ListViewItem
    Dim arrayEventlogSys(5) As String
    ' Clear existing items from list
    lvwEventLogSys.Clear()
    ' Create columns and set width
    lvwEventLogSys.Columns.Add("Date/Time", 120)
    lvwEventLogSys.Columns.Add("Type", 50)
    lvwEventLogSys.Columns.Add("Source", 150)
    lvwEventLogSys.Columns.Add("ID", 100)
    lvwEventLogSys.Columns.Add("Message", 1000)
    ' get event log (system) critical entries
    Dim eventLogSystemCritical As New System.Diagnostics.EventLog("System")
    Dim eventCntr2 As Integer = 1
    Dim numberofeventstoshow2 As Integer = 1
    For i As Integer = eventLogSystemCritical.Entries.Count - 1 To 0 Step -1
    Dim eventLogSysCriticalEntry As EventLogEntry = eventLogSystemCritical.Entries(i)
    If eventLogSysCriticalEntry.EntryType.ToString = ("0") Then
    arrayEventlogSys(0) = (eventLogSysCriticalEntry.TimeGenerated)
    arrayEventlogSys(1) = ("Critical")
    arrayEventlogSys(2) = (eventLogSysCriticalEntry.Source)
    arrayEventlogSys(3) = (eventLogSysCriticalEntry.InstanceId)
    arrayEventlogSys(4) = (eventLogSysCriticalEntry.Message)
    ListEventlogSys = New ListViewItem(arrayEventlogSys)
    lvwEventLogSys.Items.Add(ListEventlogSys)
    eventCntr2 = eventCntr2 + 1
    If numberofeventstoshow2 = 10 Then Exit For ' amend if you want to show more than 10 events
    numberofeventstoshow2 = numberofeventstoshow2 + 1
    End If
    Next
    ' get event log (system) error entries
    Dim eventLogSystemError As New System.Diagnostics.EventLog("System")
    Dim eventCntr3 As Integer = 1
    Dim numberofeventstoshow3 As Integer = 1
    For i As Integer = eventLogSystemError.Entries.Count - 1 To 0 Step -1
    Dim eventLogSysErrorEntry As EventLogEntry = eventLogSystemError.Entries(i)
    If eventLogSysErrorEntry.EntryType.ToString = ("Error") Then
    arrayEventlogSys(0) = (eventLogSysErrorEntry.TimeGenerated)
    arrayEventlogSys(1) = (eventLogSysErrorEntry.EntryType.ToString)
    arrayEventlogSys(2) = (eventLogSysErrorEntry.Source)
    arrayEventlogSys(3) = (eventLogSysErrorEntry.InstanceId)
    arrayEventlogSys(4) = (eventLogSysErrorEntry.Message)
    ListEventlogSys = New ListViewItem(arrayEventlogSys)
    lvwEventLogSys.Items.Add(ListEventlogSys)
    eventCntr3 = eventCntr3 + 1
    If numberofeventstoshow3 = 10 Then Exit For ' amend if you want to show more than 10 events
    numberofeventstoshow3 = numberofeventstoshow3 + 1
    End If
    Next
    End Sub
    Darren Rose

  • Finder method to retrieve CMR field?

    Hello all!
    I have two entity EJBs - one named "Property" and another named "Merchandise".
    Property has a one-to-many relationship to Merchandise, and Merchandise is a CMR
    field (named "merchandise") in Property. Now I would like to write a finder method
    for Property to retrieve the CMR field (Merchandise references). The finder method
    is called "findDVD()". The ejb-ql is below:
    SELECT DISTINCT OBJECT(merch) FROM Property AS p, IN(p.merchandise) AS merch
    WHERE merch.starsMasterTitleId = ?1
    AND merch.productTypeCode = 'VIDEO'
    AND merch.format = 'DVD'
    AND merch.active = 'Y'
    AND merch.approved = 'Y'
    AND merch.purchaseable = 'Y'
    However, I can't seem to get this method to work. Weblogic's EJBC keeps complaining
    that the returned collection MUST be of the method owner type - in other words,
    I can't return Merchandise references, only Property references.
    What am I doing wrong? Is this a limitation in CMR that I didn't know about? Please
    help!
    I am using WLS 6.1 with SP 1.
    Thanks so much!
    -B

    If you are using ejb2.0 you can do this using a home method and select
    method instead of a finder. Finders are limited to returning objects of the
    type of ejb they belong to while select methods are not. Select methods
    cannot be invoked directly by the clients so you need a home method to wrap
    them.
    -- Anand
    "Brian Wang" <[email protected]> wrote in message
    news:3ca3678d$[email protected]..
    >
    >
    Hello all!
    I have two entity EJBs - one named "Property" and another named"Merchandise".
    Property has a one-to-many relationship to Merchandise, and Merchandise isa CMR
    field (named "merchandise") in Property. Now I would like to write afinder method
    for Property to retrieve the CMR field (Merchandise references). Thefinder method
    is called "findDVD()". The ejb-ql is below:
    SELECT DISTINCT OBJECT(merch) FROM Property AS p, IN(p.merchandise) ASmerch
    WHERE merch.starsMasterTitleId = ?1
    AND merch.productTypeCode = 'VIDEO'
    AND merch.format = 'DVD'
    AND merch.active = 'Y'
    AND merch.approved = 'Y'
    AND merch.purchaseable = 'Y'
    However, I can't seem to get this method to work. Weblogic's EJBC keepscomplaining
    that the returned collection MUST be of the method owner type - in otherwords,
    I can't return Merchandise references, only Property references.
    What am I doing wrong? Is this a limitation in CMR that I didn't knowabout? Please
    help!
    I am using WLS 6.1 with SP 1.
    Thanks so much!
    -B

  • Function to retrieve event parameters from job

    Hello,
      Is there a function to retrieve the event parameters for a job.
      This job is triggered by an event.
    Regards, Michel

    Check in TBTCP and TBTCO Table there in some field it i s mentioned..
    TBTCP and TBTCO is the table which stores job details ..

  • What is best method to retrieve data from two databases

    I'm writing a report that needs data from two sql databases. Not the same brand. Grouping and sorting fields come from both databases, so I can't just read one and retrieve data from the other. It seems to me I have to extract data from each data base using crystal reports, merge the two files using crystal reports and feed the merged file into crystal reports. I've not found a simpler or better method in the Crystal Reports documentation. Is there documentation about doing this process on the web site or with crystal reports documentation? My method seems cumbersome so I'm wondering if there is a better method.

    Jeffrey,
    A cheap and effective solution, for a periodic transfer would be using XML.
    If you have the DDL for all of the objects in the database, you can just duplicate it on whatever RDBMS engine you want, and then, extract the data, table per table into XML files from the target server, and then load the files into the target server.
    Otherwise, if you are going to do this in an ongoing basis, then, use SAP Replication Server. The best asynchronous, real time, heterogeous replication solution in the industry, exploited with a great deal of success by many critical mission financial applications with global topologies and sub second latency.
    My two cents.
    I hope they help.
    Regards,
    Jean-Pierre

Maybe you are looking for

  • Can't connect to windows 7 machine using microsoft remote desktop connection

    I am unable to connect from my home network to the Windows 7 Professional machine at my office, using either Microsoft Remote Desktop Connection (2.1.1) for Mac or the open source CoRD program. When connected to the office network (which is running M

  • IPhoto saving photos by "roll" on hard drive

    For some reason my iPhoto library is now saving all of my photos on my hard drive by "roll". I am not talking about how they are viewed from within iPhoto (I know that can be controlled under view/sort photos), but how they are saved on my hard drive

  • PE8 Device Error

    PE8. I have been burning DVDs this week but the current video stops prematurely and the message, "Device Error - the target device isn't suitable for use."  I have been using the same media all week. What is wrong?

  • SQL tuning issue

    Hi, I would like some help tuning the following query: SELECT distinct cs.study, de.STUDY_SITE Site, iv.last_name INV, de.PATIENT , pv.visit_number Visit, -- REPLACE(asm.assessor_name, ',', '|') assessor_name, de.DISCREPANCY_REV_STATUS_CODE Status, F

  • Create Calendar showing events

    When I create a calendar using Photoshop 4 I want to have all of my events show on it. I have entered all of my events in the calendar view in the organizer but they don't show up on the finished calendar. When I create a calendar I cant figure out h