Can we define a function in a sub process?

Hi ,
I want to know whether we can define a function in a sub-process ? coz I see only notifications defined in the sub_process in seeded oracle workflows .
also highlight if we are the running the workflow from developer studio do we need call the main process first or the sub-process first ?
Regards,
Shashk

Hello Shashk,
Yes functions can be used in sub-processes. If you are creating a custom function, it must be defined in a specific fashion to work with WF. See the Workflow Developer Guide for your version. 2.6.2 available here:
[http://download.oracle.com/docs/cd/B10501_01/workflow.920/a95265/toc.htm|http://download.oracle.com/docs/cd/B10501_01/workflow.920/a95265/toc.htm]
Not sure about Developer Studio per se but typically you can run any process in a workflow that is marked 'runnable'.
- James

Similar Messages

  • Report Builder: can i define a function in  the rdf file ?

    Hi All,
    About the report builder, can i define a function in the rdf file ? and then i want invoke it in the report SQL, just like :
    function Get_Ap_Prepay_Balance(p_Invoice_Id IN NUMBER, p_End_Date IN DATE) RETURN NUMBER IS
    l_Amount number;
    begin
    RETURN l_Amount;
    end;
    thanks.

    You can create functions in reports, but slightly different from doing it in PL/SQL
    function Get_Ap_Prepay_Balance return number is
    l_Amount number;
    begin
    assuming that you have invoice_id in your select statement and p_End_Date is a report parameter, you can refer to them in your function as :p_End_Date and :invoice_id
    for example select prepay_amount_remaining into l_Amount from ap_invoice_distributions where invoice_id = :invoice_id and accounting_date = :p_End_Date
    return(l_Amount);
    hope this helps

  • Can I define a Function as part of the Report?

    In an Oracle Report, I want to define a Function, to use in the report query. I defined a Function CALC_DIFFERENCE under Program Units. It compiled OK.
    But when I tried to use this function in the query it get them message ORA-00904 “CALC_DIFFERENCE” invalid identifier.
    Can I define a Function as part of the Report? Or does it need to be on the database?
    Report Builder 9.0.4.0.33
    Thanks

    You have to put it in the database if you want to use it in your query. The reason is simple: the query runs in the database, so it won't see the function in the Report.
    If you really need the function in the report (because it uses other values only known in the report), you have to create a formula column.

  • How can I define the possible entries for "invoicing process" at fkkinv_ma?

    At the transaction code fkkinv_ma, I fill in the fields "Date ID" and "Identification" but I have a problem with the field of "Invoicing Process". When I psh theF4 button, there comes no search help. What should I do? Should I define the possible entries first? If I should, how can I define the possible entries for "invoicing process"? How is the customization done?
    Thanks in advance for the answers.

    You have to define them in the IMG 
    Financial Accounting (new)
    Contract Account Recievable and Payable
    Business Transactions
    Invoicing
    Invoice Types
    You have to set up a number range, decide what type of Financial transactions should not be invoiced -- like  Dunning Charges
    then you have to have a developer create the form and form class of invoice.

  • How can I define a function in "decide" step in process chain?

    Hi guys,
    I have a process chain und want to use the "decide" step in this process chain. It seems possible that a funktion can be created ( "Customer defined"  ) in this step. But how can I create it and how can I check the available code?
    Thanks for any hint!
    Regards,
    Youyou

    It's a helpfel document!
    But I steel have a question:
    I want to use a self-defeind function. And I also see it is possible to use such function here.
    But I am not sure how I can define this function, via BADI?
    And how can I use this function here. (Maybe if I can define it, then it shows automatically...)
    Regards,
    Liying

  • Is it possible to define a function in the MathScript Node

    Is it possible to define a function in the MathScript Node

    You can not define a function inside of a MathScript Node, but only because it isn't necessary. The way custom functions work in MathScript is that they are saved in .m files located in paths in the MathScript path list. When the MathScript compiler receives a function that it doesn't recognize, then it searches for it in the path list, and upon finding it, compiles and loads the function. You can specify these search paths manually by going to File>>MathScript Preferences from the MathScript Window or dynamically by using the path() command within a script.
    To answer your original question, if you would like to create custom functions dynamically within a VI, then you can simply build your custom functions using strings and then save them to an ASCII file with the extension .m. You could either save the file to a path already in the MathScript path list or you could dynamically specify the path by passing the path into a MathScript Node as a string and by using the path() command at the beginning of your script to set it.
    Kind Regards,
    E. Sulzer
    Applications Engineer
    National Instruments

  • How to define partner functions in ECC 6.0

    Hi All,
    I'm using ECC 6.0. I tried the IMG path "Sales and Distribution -> Basic Functions -> Partner Determination". My document says I can find "Define Partner Functions" here. But actually there's only a "Set Up Partner Determination" under this foloder. Could somebody give me a clue?
    Best Regards
    Jerome

    Thanks for the help!
    Best Regards
    Jerome

  • Partner function in vendor sub-range

    in vendor master data, we can maintain different partner function for each sub-range, but if to create PO, the partner is at header leavel, and vendor sub-range is at item level, then how the system copy partner in sub-range to PO? in header level, it always using partner function from main vendor. if the sub-range partner function can not copied to PO, then what this partner function used for?

    make sure you have the small box "higher level " checked in customizing of partner determination.

  • Will more function globals or sub vis slow down realtime DAQ or display

    I need to do high sampling rate DAQ with varient data process and display.
    Shall I intend to put all the code into one vi to accelarate the speed,  or can I use more function global or sub vis to make the structure looks more reasonable.
    Just worry how the compiler handle the data transfer when call function global or sub vis.
    Will it creat new data copy and slow down the speed. Thanks.

    The other 2 loops in charge of the data processing and display will keep checking the version of the 2 function global. 
    For high performance, you want to avoid this sort of thing. Basically, you're polling the functional global to see if it has new data. Polling will eat the CPU unless you include WAIT periods, but doing that slows your responsiveness.
    Consider using custom events.
    For the sake of discussion, let's say you need to process data in the TIME domain (1) and the FREQUENCY domain (2).
    You create two events: NEW TIME DATA and NEW FREQ DATA, each carrying an array of DBL (the time-domain data from the DAQ).
    The DAQ routine, when it gets a new data block fires both these events, feeding it the new data. 
    Your TIME DOMAIN loop (1) has registered for one event.  When that event is triggered, the code accepts the data, and does whatever it needs to do (filters the time domain, graphs it, writes to file, averages, whatever).
    Another loop (2) has registered for the OTHER event.  When THAT event is triggered, the code accepts the data, performs FFT on it, and  does whatever it needs to do (filters the frequency domain, graphs it, writes to file, averages, whatever).
    Or you could do the same thing with queues.
    When the use changes conditions, you change which event you listen to, or which queue you consume from. 
    The idea is that you want to avoid polling.  Let the system tell YOU when data is available. Don't be asking the system if it's available. 
    Steve Bird
    Culverson Software - Elegant software that is a pleasure to use.
    Culverson.com
    Blog for (mostly LabVIEW) programmers: Tips And Tricks

  • Concept of Sub Process and Starter Process in BPEL

    Hi Forum -
    With my limited understanding of BPEL I have found that if a process has to interact with another process it has to be exposed as a service however that is not good in all cases.
    Is there a way in BPEL where once can create a process and do not expose it as service and still be able to call it from another BPEL process.
    For example there can be a process called sendNotification and all the other processes if they want to send a notification can call this process.
    In TIBCO there is a concept of Starter Process and Sub Process. A Starter Process is a process which will wait for an event to take place, like a web service request or a JMS message or a database adapter event and then this main process can call a sub process, just like the main program calling a function. This sub process need not be defined as a service in TIBCO and it can still accept an xml schema type as input.
    Is this possible in BPEL?
    Thanks!

    10g -> Every process is a service.
    11g -> Create a Composite, You could wire multiple BPEL Components and expose only the desired ones as a service through a mediator or directly the bpel. Mediator provide one more layer of virtualization and hides even the first master bpel component.
    But if the send notification have to be reused outside the composite, it has to be an exposed service. Although it is exposed as a web service, it uses only WSIF binding to interact between bpel processes and not a soap binding(unless specifically instructed).
    If you are looking for function kind of construct, you could create custom xpath functions (like logging etc.)
    -Sridhar

  • How can I call a stateful webservice from a user-defined XPath function?

    I'm calling a stateful webservice from a BPEL process using a PartnerLink which implements Custom Header Handler classes to handle the session state, storing the cookie as a property of the PartnerLink.
    I'd also like to call this same stateful webservice, in the same session, from a user-defined XPath function enabling me to call this from an XSL Transformation.
    Is this in any way possible? Can I access the cookie and attach it to the webservice call made by the user-defined XPath function?

    Actually, as long as the servlet returns valid javascript, you can indeed "call it" from the client. It will initiate a request and return the result to the browser.
    This example uses Perl, but it could be easily modified to go to a servlet instead.
    Note that it is only supported in DOM browsers (IE6+/NN6+/etc)
    <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" "http://www.w3.org/TR/REC-html40/loose.dtd">
    <html>
    <head>
    <title> Test server-side JS </title>
    </head>
    <body>
    <script type="text/javascript">
    function checkIt(variable, value)
    var newScript = "cgi-bin/validateJS.cgi?"+variable+"="+value;
    var body = document.getElementsByTagName('body').item(0)
    var scriptTag = document.getElementById('loadScript');
    if(scriptTag) body.removeChild(scriptTag);
    script = document.createElement('script');
    script.src = newScript;
         script.type = 'text/javascript';
         script.id = 'loadScript';
         body.appendChild(script)
    </script>
    <p>Test.</p>
    <form id="f1" action="">
    <input type="text" name="t1" id="t1" onChange="checkIt(this.name, this.value)">
    </body>
    </html>
    validateJS.cgi
    #!/opt/x11r6/bin/perl
    use CGI qw(:all);
    my @valArray = split(/=/,$ENV{QUERY_STRING});
    print "Content-type: text/javascript\n\n";
    # myPass is the password
    $myPass = "foobar";
    if ("$valArray[1]" eq "$myPass")
    print "alert(\"Success!!\")";
    else
    print "alert(\"Failure!!\")";

  • How can I use User-Defined Aggregate Functions in Timesten 11? such as ODCI

    Hi
    we are using Timesten 11 version and as per the documentation, it doesn't support User-Defined Aggregate Functions.
    So we are looking for alternatives to do it. Could you please provide your expert voice on this.
    Thanks a lot.
    As the following:
    create or replace type strcat_type as object (
    cat_string varchar2(32767),
    static function ODCIAggregateInitialize(cs_ctx In Out strcat_type) return number,
    member function ODCIAggregateIterate(self In Out strcat_type,value in varchar2) return number,
    member function ODCIAggregateMerge(self In Out strcat_type,ctx2 In Out strcat_type) return number,
    member function ODCIAggregateTerminate(self In Out strcat_type,returnValue Out varchar2,flags in number) return
    number
    How can I use User-Defined Aggregate Functions in Timesten 11? such as ODCIAggregateInitialize ?

    Dear user6258915,
    You absolutely right, TimesTen doesnt support object types (http://docs.oracle.com/cd/E13085_01/doc/timesten.1121/e13076/plsqldiffs.htm) and User-Defined Aggregate Functions.
    Is it crucial for your application? Could you rewrite this functionality by using standart SQL or PL/SQL?
    Best regards,
    Gennady

  • Help! Can I have user defined extension function?

    Under SQL Sever XML, I can write a xsl script like this:
    <msxsl:script language="JScript" implements-prefix="myfunc">
    function getvalue(nodelist,name,istag){
    var subNode=nodelist.nextNode();
    if(subNode == null) return('?');
    if(istag == '') name = '@' + name;
    var value=subNode.getElementsByTagName(name);
    return((value == null)?'':value);
    </msxsl:script>
    and I can call this function in the xsl, obviously, msxsl supported by microsoft. I know that Oracle XML support Extension function, but you can tell here that I want a user defined function while not a predefined function. Can I have such feature with Oracle XML, and How? Thanks.

    Oracle XML support Extension function.
    For example:
    If we would like to import FAQDBUri.class with user-defined java functions, like TranslateDBUri(), we can write XSL file like this:
    <xsl:template match="/" xmlns:dburig="http://www.oracle.com/XSL/Transform/java/FAQDBuri">
    <xsl:variable name="urladd" select="dburig:TranslateDBUri($url)"/>

  • GRC AC 10 - Defining sub processes

    We are in the process of implementing AC 10 and need to define the Business and sub processes for the role creation methodology and to upload the existing roles into AC Role management tool. The issue is we have only Business process defined for our existing roles and there is no sub process defined/exist for the roles as they are created as per the BP and position wise. 
    I would like to know how we can define the sub processes for our existing and future roles as  our company does not have the sub processes defined. We define roles on the basis of Business process followed with the staff position.

    Defining Sub processes is functional task .You can get help from your BAu2019s and FAu2019s . After defining business process you can decide default access for business process and additional  access can be requested by mentioning role name .
    Check this : http://help.sap.com/saphelp_grcac10/helpdata/en/27/00965aaa2d4fb0aba7600533fa7570/frameset.htm ( check Default Roles )
    In GRC 10 . You can define sub process in SPRO->GRC->AC->Maintain Business processes and Sub processes  .
    Thanks
    Aditya
    Edited by: Adityatd on Jun 24, 2011 4:11 PM

  • Custome BAPI - declare ITAB and define the Function Module and Subroutine

    Hello Experts
    I want to create a Custom BAPI and it has the following scenario:
    1) a Function Module which collects some records into it internal table, say ITAB
    2) a Subroutine which moved the records from ITAB to BAPI table
    Now, I want to declare ITAB and define the Function Module and Subroutine.
    Where and How can I do this?
    Plz suggest.
    Regards
    BD

    Hi,
      1) Got to SE37 and create an RFC .
      2) Declare the ITAB directly in the TABLES tab of the FM.
      3) Inside the FM source Code tab, collect all the data using SELECT query and directly or by using logic, put the data into the
          ITAB.
      4) Since the data collected is directly put into the itab you dont need a subroutine to be written.
      5) If subroutine is a necessity, then just write PERFORM SUB ROUTINE NAME.
           AND DEFINE THE FORM ENDFORM OF THE SUBROUTINE AFTER THE ENDFUNCTION OF THE FM
       Let me know if any issues....
    Regards,
    Vimal.

Maybe you are looking for

  • Firefox is taking too much time to startup,like 20 secs. I use windows 7.Help!!!

    I have updated to 3.6.8 and the problem started. I never had this problem before. How do I fix this?

  • All of a sudden I cannot import

    Aperture will not import photos. When I try and do it from the card reader, it imports nothing even though I select all. I tried copying the photos to a folder and importing from there but that does not work. I get a message that aperture imported wi

  • Gnome crash after pacman update [solved]

    hey, i update my system and restart the computer. Display Manager is boot up (Slim), i log in and i get crash. "oh no .....all extensions have been disable...." I thought it might be something with that extensions so i removed them (~/local/share/gno

  • Need help clearing up an image of a front license plate from a break in at my office

    I had a break in at my office and got a video of the car and front plate. Unfortunately Dropcam's quality is not great so the image is a little blurry. I'm hoping someone on this forum can help me clear it up. I've tried various filters in Photoshop

  • Need help with method calling

    I have a problem with method calling as it does the method but doesn't send the values to the main program. The Need section in the main should take in the Max and Allocation arrays from the setMax and setAllocation but it doesn't. I figure I'm missi