How to return the name (or ID) of the Task FLow in Script

Sitaution; two task flows created which can be accessed via Tools > TaskFlows within FDQM
Task Flow "1.1 Multi Load - Import" --> Should run Batch Process Up to Import (enmBatchProcessLevel: 2)
Task Flow "2.1 Multi Load - Import Up To Validate" --> Should run Batch Process Up to Validate (enmBatchProcessLevel: 4)
I have developed one generic script which I would like to use for each task flow.
Only the enmBatchProcessLevel differs between the task flows and therefore I would like to parse this enmBatchProcessLevel as a parameter my generic script.
To be able to do this, the script needs to know on which task flow a user has clicked. So, I am looking for a function or statement which returns the name (or ID) of the task flow. Based on this name (or ID) a conditional statement can be performed in which a variable is dynamically filled. This variable can then be parsed as a parameter to my generic script.
For instance:
Sub GenericRoutine
     Dim strTaskFlow
     Dim intBatchProcessLevel
     '--Get the Task Flow Name
     strTaskFlow = ......<How to return the TaskFlow name or ID?>
     '--Validate the task flow and fill variable intBatchProcessLevel dynamically
     Select Case strTaskFlow
          Case "1.1 Multi Load - Import"
               intBatchProcessLevel = 2
          Case "2.1 Multi Load - Import Up To Validate"
               intBatchProcessLevel = 4
     End Select
     '--Execute generic script
     '--Call Batch script and parse intBatchProcessLevel as a parameter:
     Call sBatchProcess(intBatchProcessLevel)
     '--Execute generic script
End Sub
Sub sBatchProcess(Byval intBatchProcessLevel)
     Dim lngProcessLevel
     Dim strDelimiter
     Dim blnAutoMapCorrect
     '--Use intBatchProcessLevel to fill lngProcessLevel
     lngProcessLevel = intBatchProcessLevel
     strDelimiter = "_"
     blnAutoMapCorrect = 0
     Set BATCHENG.PcolFiles = BATCHENG.fFileCollectionCreate(CStr(strDelimiter))
     BATCHENG.mFileCollectionProcess BATCHENG.PcolFiles, CLng(lngProcessLevel), , CBool(blnAutoMapCorrect)
End Sub
Edited by: user13642656 on Jul 21, 2011 4:55 AM

Hi, thanks for your reply.
The Generic script contains 600+ records, which I would like to maintain once, when having multiple Task Flows for Import, UpToValidate, ValidateOnly, UpToExport, ExportOnly etc.
Is there a central storage in FDQM workbench for script, like a "Module" in Excel VisualBasic environment? Thanks!

Similar Messages

  • I ordered Illustrator for another user.  I received an invitation that was accepted, logged in and tried to change the account to the name and email of the person it was ordered for.  How can I get this changed and the invitation sent to the right person?

    I ordered Illustrator via creative cloud for another user.  I received an invitation that was accepted  and tried to change the account to the name and email of the person it was ordered for.  How can I get this changed and the invitation sent to the right person? 

    Cloud as a Gift https://forums.adobe.com/thread/1665610

  • HT1918 I Have Two IPod Touch's, One Ipad3,One Iphone 4S, How do I Change The Name of each of the devices

    How I change The Names On Each Of My Devices? Ihave 2 IPod touch's 4th Generation, 1-IPad 3, & 1IPhone 4S? Thank you

    You can either do it directly on them via Settings > General > About > Name, or when connected to your computer's iTunes you can double-click the name of it on the left-hand sidebar.
    Renaming a device : http://support.apple.com/kb/HT3965

  • How to change the name of ipod using the newest version of itunes

    I just downloaded the newest version of itunes and bought another ipod to hook up.  I would like to change the name of one of the ipods but can't see how.
    Anyone know how to do this.

    Double click on the iPod name in iTunes.

  • Have published iweb site for five years with no problems and just opened a new site and get - 404: Page not found  This error is generated when there was no web page with the name you specified at the web site.-is the problem with iweb or with hosting?  T

    I am sorry if thie is republished-My first time doing this and I am not sure what goes where and where to hear feedback.
    Have published iweb site for five years with no problems and just opened a new site and get -
    404: Page not found 
    This error is generated when there was no web page with the name you specified at the web site.-
    Troubleshooting suggestions:
    Ensure the page you are linking to exists in the correct folder.
    Check your file name for case sensitivity . Index.htm is not the same as index.htm!
    Temporarily disable any rewrite rules by renaming your .htaccess file if it exists
    is the problem with
    iweb or with hosting?
    One Apple tech started to fix Iweb and had to end session and the next said problem with hosting at Network Solutions as it published
    to local folder. NWS has checked sttting a few times-
    Any help would be extremely appreciated as trying to fix this for about five weeks
    Thanks VG
    <Email Edited by Host>

    It's a really bad idea to post your email address - it's an invitation to spam - and I've asked the Hosts to remove it. (Even though I've now noticed you mis-spelled it! - anyway, never post your address in a forum.)
    You have a site here: http://virginiagordon.com/www.virginiagordon.com/WELCOME.html
    If that's not the page you are having trouble with, what is that page's URL?

  • How to define the default activity for an unbounded task flow?

    In the new "Fusion Developer’s Guide for Oracle Application Development Framework 11g Release 1" documentation at the bottom of page 14-3 it states "An unbounded task flow .... contains a default activity, an activity designated as the first to run in the unbounded task flow, because an unbounded task flow does not have a single point of entry."
    What I can't find is how to define the default activity in an unbounded task flow and where this is recorded? Can we set this via the task flow diagrammer, and which configuration file is it stored?
    I note the first time I run the application with an unbounded task flow a dialog asks me which of the activities in the adfc-config.xml file to make the default, but I can't find where this is recorded.
    Anybody have any ideas?
    Thanks,
    CM.

    Chris,
    In fact this information is nothing that belongs into the taskflow meta data because unbounded taskflow have more than one entry point and there is no notion of default. Its a tools setting (JDeveloper) we had before
    Frank
    Message was edited by:
    Frank Nimphius

  • There is a problem The new update is okay, but does not the name of appea in the AirPlay device is in sleep mode.

    There is a problem
    The new update is okay, but does not the name of appea in the AirPlay device is in sleep mode.

    Hi,
    Firstly, I would suggest we use Exchange 2013 FE as the Outlook Anywhere proxy server.
    For the certificate issue, it mostly occurs because the host name that Outlook are trying to access does not match the certificate SAN. Please check with this point. If they do not match, you
    can change the host name by referring to the following article:
    https://support.microsoft.com/kb/940726/en-us?wa=wsignin1.0
    Thanks,
    Simon Wu
    TechNet Community Support

  • I wish to modify the name of one of the field name in the sales order.

    HELLO GURRRUS,
                 i wish to modify teh name of one of the field name in the sales ordder.
    what is the procdure,path and steps involved in that.it would be of great help of me if u take some  time and suggest me.
    bye take care hav a happy and peaceful life

    Hi Sameer,
    If you want to change the name or description of the field in the Sales order,
    you have to use the userexit MV45AFZZ and use the Form USEREXIT_FIELD_MODIFICATION.
    Get the help of the ABAPer and decide where do you want to make the change in the Header or the Line items.  Accordingly give the requirements to the ABAPer.
    He will do it.
    Thanks
    Augustine Ponraj

  • "Unable to verify the name or password of the account" (Twitter account Mountain Lion OSX)

    I recently installed Mountain Lion OS X (10.8 actually) and have been trying to configure my Twitter account to integrate it on my iMac, the problem is that when I type my Username and Password it won't let me add the specified account, it always appears the following message below the Username/Password fields: "Unable to verify the name or password of the account".
    I know it may be that I type wrong my password or username, but I have checked and double-checked both password and Username and STILL get this message it has become rather annoying what does it mean? Do I have a problem with my privacy settings, firewall or something?...any help I would really aprecciate it,
    Thanks in advance!

    Have this issue as well, any info on fix?

  • To rename a folder...I must go first to "get information", than change the name? Is it the only way? Thanks!

    To rename a folder...I must go first to "get information", than change the name? Is it the only way?
    Thanks!

    Search!!!!!
    http://lmgtfy.com/?q=rename+folder+on+mac

  • How to filter View Objects on Main Page - Unbounded Task Flow

    Hi All,
    Version: 11.1.1.4
    I have a scenario where I am trying to filter the Employee information by EmployeeID and show their related Items. I can do this if I encapsulate Employee and / or Items in bounded task flows and expose their view Criteria in methods that I am setting on the App Module. I could also add the bind variable to the View Object queries. The problem I am having is that I want to display a pop up based on the item they select. My issue is that I can't seem to figure out how to either grab the item row selected and pass it to the pop up (Can't create a control flow from a page fragment to a page - which as far as I can understand the pop up in the task flow has to be a page and not a page fragment) or drop the employee view object and item view object on the main page and have them be filtered.
    So basically two issues:
    1. If I use the Employee and Item bounded task flows and place them as regions on the main page then I am having difficulties passing the row selection (item selected) and pass it to my pop up window (another task flow).
    2. If I place the employee and item view objects on my main page the original methods I am using to filter the data are not getting called at all. I have tried placing them in the adf-config task flow prior to my main page view and going into my main page page def and adding them as method calls in the binding.
    I am sure I am doing something wrong or maybe even creating an invalid approach, but I should be able to filter my employee and item data on load within my unbounded task flow or use the data within my bounded task flows and generate a popup with data I am collecting from my item row.
    As always greatly appreciate the feedback....still really ignorant with ADF.
    --S                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               

    I figured out the issue Shay. I didn't have my pageFlowScope value set on the task-flow-call. So I had the parameter name and value set on the input of my downstream bounded task flow, but when I add the control to call the task flow I didn't have the task-flow call value set. That piece was not intuitive to me. It makes sense that it would have to know how to pass the value.....just wasn't sure where it should be set.
    --S                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   

  • How to return package name?

    for example, I have a program Bank.java
    package MyBank;
    public class Bank {
    What should I write in the program if I want the program to return me the package name?
    Thanks!

    > How if I need to return it statically?
    for example I need to return in in the
    public static void main method.
    so that I cannot use
    this.getClass.getPackage.toString( );
    Thanks
    Then you should make an instance of your class in that static method:
    package test;
    public class Test {
      public Test() {
      public static void main(String[] args) {
        System.out.println((new Test()).getClass().getPackage().toString());
    }

  • How to return column name in some table?

    Hi All,
    I know :system.cursor_value which returns the value of the current text item in the form.
    But Is there a way to return the column name and its value in some table?
    Note: I'm using Oracle DB 10g
    Thank you

    Did you read the original post? [...] You don't understand what I want and you don't say antthing useful for my goal!
    This is the SQL and PL/SQL forum. You need the Mind-Readers' forum down the hall.
    First you asked "Is there a way to return the column name and its value in some table?", and were told you can get the former from the data dictionary (you can get the latter from the table itself).
    Then you say you "want to create a trigger on a table", which tells us nothing about your problem.
    Finally you say "but suppose the table contains 50 columns then I have to write 50 columns names three times", which is essentially true - but the process can be automated. What you (probably) need to do is write queries based on the data dictionary tables that generates the PL/SQL that you ultimately put in your triggger - you then use that output to build the trigger(s).
    I don't think there's any way, at run time, to generically fish out all the columns of a table with their :new and :old values - you have to write (or auto-generate) specific code for each table.

  • How can i change the name in imessage from the full email address used as apple id on ipod touch?

    I used my full email address to create an apple id - but on imessage it uses my apple id as my name as sender + i dunno how to change it so ppl dont get a messsage showing my full email address!
    Can anyone help?

    Open the Contacts app. List All Contacts and find the email address used by iMessage. Select the email address and tap the Edit button in the top right corner. Add your name to the top two lines. Tap Done.

  • How to find ContentDb Name for any of the service application (e.g. User profile , Managed metadata , etc) programmatically in a farm ?

    Hi,
    I have a application where i need to display Name for all the service application. Specifically i need to get the size of user profile service application and Managed metadata service application name.
    Please guide me. :)
    Thanks and Regards:
    Sanjay

    You can use 
    http://blogs.technet.com/b/tothesharepoint/archive/2011/12/19/find-active-databases-used-by-sharepoint-server-2010.aspx
    Get-SPDatabase | Sort-Object disksizerequired -desc | Format-Table Name”
    http://webcache.googleusercontent.com/search?q=cache:kMHQXNGmjcwJ:sharepointstruggle.blogspot.com/2011/08/programmatically-enumerating-databases.html+&cd=1&hl=en&ct=clnk&gl=in
    using(SPSitesite
    = newSPSite(url))
    using(SPWebweb
    = site.OpenWeb())
    SPFarmf
    = site.WebApplication.Farm;
    foreach(SPDatabaseServices
    inf.Services.OfType<SPDatabaseService>())
    Console.WriteLine(string.Format("Found
    Database service {0} of type {1}",
    s.Name, s.GetType().Name));
    foreach(SPDatabaseServiceInstancespdsi
    ins.Instances)
    Console.WriteLine(string.Format("|-Found
    Database Service Instance {0} ({1})",
    spdsi.DisplayName, spdsi.Name));
    foreach(SPDatabasespdb
    inspdsi.Databases)
    Console.WriteLine(
    string.Format("  |-DB: {0}\r\n    |-TYPE: {1}\r\n   
    |-HOST: {2} ",
    spdb.Name.Length
    > 70? spdb.Name.Substring(0,
    65)
    + "...": spdb.Name,
    spdb.GetType().Name, spdb.Server.Name)
    http://social.msdn.microsoft.com/Forums/en-US/61e4e56e-e373-4167-ba97-e0f411feefe9/how-can-we-programmatically-find-the-names-of-sharepoint-databases

Maybe you are looking for