Workflow context variable / function

Is there any Database variable or function, which would return, whether a specific code is being called from a Workflow process or not ?
For Ex: if the function fnd_global.user_id return a value other than -1, then the code is being executed from Oracle eBusiness suite. Similarly FND_GLOBAL.CONC_REQUEST_ID gives info about concurrent program.
regards
Yj

Hi Maya,
I dont think you need to use Context variable as a replacement for AT NEW....There would be something else out of box...
Because Context Variable represents - Variables declared in context to the report other than declaraing globally....
Could you please send us the part of code where you get this error?
Best Regards,
Ram.

Similar Messages

  • Context variable DRIXMD (namespace DR$APPCTX) shows up in v$context

    We have recently upgraded our database to Oracle Database 11g Enterprise Edition Release 11.2.0.3.0 - 64bit Production.
    Now we occasionally get the error in one of our APEX applications
    ORA-01031: insufficiënt privileges
    The apex application is using a user connection pool.
    When an Apex page is submitted we clear the context variables so the user won’t use each other’s settings.
    The context variables to be cleared are selected from V$CONTEXT.
    For some reason the context variable DRIXMD (namespace DR$APPCTX) is now (since the upgrade to 11.2) also shown in v$context.
    The package used in our code is not allowed to set variables in namespace DR$APPCTX and is raising the error.
    My question is:
    Is it a normal feature to see these context variables in V$CONTEX and if not is there a fix available?
    And if yes, can anyone clarify this?
    Thanks in advance.

    Success!!!
    I had to grant this permissions:
    call dbms_java.grant_permission( 'WS_TEST', 'SYS:java.lang.RuntimePermission', 'getClassLoader', '' );
    call dbms_java.grant_permission( 'WS_TEST', 'SYS:java.lang.RuntimePermission', 'accessClassInPackage.sun.util.calendar', '' );
    call dbms_java.grant_permission( 'WS_TEST', 'SYS:java.lang.RuntimePermission', 'setFactory', '' )
    call dbms_java.grant_permission( 'WS_TEST', 'SYS:java.util.PropertyPermission', 'HTTPClient.socket.idleTimeout', 'write' );
    call dbms_java.grant_permission( 'WS_TEST', 'SYS:java.net.SocketPermission', 'localhost', 'resolve' );
    call dbms_java.grant_permission( 'WS_TEST', 'SYS:java.net.SocketPermission', '127.0.0.1:8084', 'connect,resolve' );
    As I wrote earlier, WS_TEST is my user into which I load JAX-RPC client. Note that, if you load JAX-RPC client into user another than SYS, you have NOT to use -s -grant public option (wassam wrote about this too). Another thing is that I (finally) didn't load OC4J. To consume WebService I use utl_dbws.invoke(call_Handle CALL, request SYS.XMLTYPE) function.
    voytec001

  • Needed details on Workflow context ?

    Under Workflow context in Sharepoint designer i want to know behaviour of below listed item.
    Associate Name :  ?
    Associate Manual Start:  ?
    Associate Manual Start Required Permission:  ?
    Associate Start on Item change:  ?
    Associate Start on Item Creation:  ?
    Associate Start to Approve Major version:  ?
    Associator:  ?
    Current item URL:  ?
    Current site URL:  ?
    Current User:  ?
    Date and time last RUN:  ?
    Date and Time Started:  ?
    Initiator:  ?
    Instance ID:  ?
    Item Name:  ?
    Workflow status URL:  ?
    Thanks
    venkateshrajan

    http://social.technet.microsoft.com/Forums/en-US/5a5d64bc-3583-4dca-9a66-a661491db82c/getting-list-detailsof-the-associated-list-with-workflow-in-custom-workflow?forum=sharepointdevelopmentprevious
    http://stackoverflow.com/questions/1243736/how-to-get-the-context-item-in-workflow-activity-sharepoint 
    The answer to this is a couple steps:
    Add the properties to your Custom Activity .cs
    Link the properties in your .actions file (so SPD knows how to map to your properties)
    Use the properties in your code
    STEP 1: Here is the code for the properties (my class is named GetEmails which you will need to rename to be your class):
    public static DependencyProperty __ContextProperty = System.Workflow.ComponentModel.DependencyProperty.Register("__Context", typeof(WorkflowContext), typeof(GetEmails));
    [Description("The site context")]
    [Category("User")]
    [Browsable(true)]
    [DesignerSerializationVisibility(DesignerSerializationVisibility.Visible)]
    public WorkflowContext __Context
    get
    return ((WorkflowContext)(base.GetValue(GetEmails.__ContextProperty)));
    set
    base.SetValue(GetEmails.__ContextProperty, value);
    public static DependencyProperty __ListIdProperty = System.Workflow.ComponentModel.DependencyProperty.Register("__ListId", typeof(string), typeof(GetEmails));
    [ValidationOption(ValidationOption.Required)]
    public string __ListId
    get
    return ((string)(base.GetValue(GetEmails.__ListIdProperty)));
    set
    base.SetValue(GetEmails.__ListIdProperty, value);
    public static DependencyProperty __ListItemProperty = System.Workflow.ComponentModel.DependencyProperty.Register("__ListItem", typeof(int), typeof(GetEmails));
    [ValidationOption(ValidationOption.Required)]
    public int __ListItem
    get
    return ((int)(base.GetValue(GetEmails.__ListItemProperty)));
    set
    base.SetValue(GetEmails.__ListItemProperty, value);
    public static DependencyProperty __ActivationPropertiesProperty = DependencyProperty.Register("__ActivationProperties", typeof(Microsoft.SharePoint.Workflow.SPWorkflowActivationProperties), typeof(GetEmails));
    [ValidationOption(ValidationOption.Required)]
    public Microsoft.SharePoint.Workflow.SPWorkflowActivationProperties __ActivationProperties
    get
    return (Microsoft.SharePoint.Workflow.SPWorkflowActivationProperties)base.GetValue(GetEmails.__ActivationPropertiesProperty);
    set
    base.SetValue(GetEmails.__ActivationPropertiesProperty, value);
    STEP 2: Then in your .actions file add to your block the mappings for those properties (note the entries for __ListID, __ListItem, __Context, and __ActivationProperties):
    <Action Name="[DESCRIPTION OF YOUR ACTION]"
    ClassName="[Your.Namespace.Goes.Here].GetEmails"
    Assembly="[yourDLLName], Version=1.0.0.0, Culture=neutral, PublicKeyToken=0bfc6fa4c4aa913b"
    AppliesTo="all"
    Category="[Your Category Goes Here]">
    <RuleDesigner Sentence="[blah blah blah]">
    <FieldBind Field="PeopleFieldName" Text="people field" Id="1"/>
    <FieldBind Field="Output" Text="emailAddress" Id="2" DesignerType="parameterNames" />
    </RuleDesigner>
    <Parameters>
    <Parameter Name="__Context" Type="Microsoft.SharePoint.WorkflowActions.WorkflowContext" Direction="In" />
    <Parameter Name="__ListId" Type="System.String, mscorlib" Direction="In" />
    <Parameter Name="__ListItem" Type="System.Int32, mscorlib" Direction="In" />
    <Parameter Name="PeopleFieldName" Type="System.String, mscorlib" Direction="In" />
    <Parameter Name="Output" Type="System.String, mscorlib" Direction="Out" />
    <Parameter Name="__ActivationProperties" Type="Microsoft.SharePoint.Workflow.SPWorkflowActivationProperties, Microsoft.SharePoint" Direction="Out" />
    </Parameters>
    </Action>
    STEP 3: Here is an example execute function:
    protected override ActivityExecutionStatus Execute(ActivityExecutionContext provider)
    Output = string.Empty;
    try
    SPWeb web = __Context.Web;
    // get all of the information we currently have about the item
    // that this workflow is running on
    Guid listGuid = new Guid(__ListId);
    SPList myList = web.Lists[listGuid];
    SPListItem myItem = myList.GetItemById(__ListItem);
    catch (Exception e)
    return ActivityExecutionStatus.Closed;
    If this helped you resolve your issue, please mark it Answered

  • Context variables

    Maybe I'm just missing something obvious here, but ...
    I have a JSP page that works fine under Tomcat, but it doesn't work under WebSphere.
    The JSP includes a couple of lines that retrieve context variables, as in:
    foobar=application.getInitParameter("foo.bar");In my web.xml file, there's a block that says:
    <context-param>
    <param-name>foo.bar</param-name>
    <param-value>plugh</param-value>
    </context-param>As I say, in Tomcat this works great. In WebSphere it looks like it just turns up null. Is there a differerent way to do this in WebSphere, or am I missing some subtlety?

    This functionality is detailed as part of the Servlet Specification, and as such should be implemented correctly by all J2EE containers.
    ie: It should work exactly the same under WebSphere.
    Maybe try the application.getInitParameterNames() method to see what websphere returns you?

  • How to use one Assign action to create multiple context variables

    Hello, everyone.
    I read some tips from Oracle documentation that said:
    Avoid creating many OSB context variables that are used just once within another XQuery
    Context variables created using an Assign action are converted to XmlBeans and then reverted to the native XQuery format for the next XQuery. Multiple "Assign" actions can be collapsed into a single Assign action using a FLWOR expression. Intermediate values can be created using "let" statements. Avoiding redundant context variable creation eliminates overheads associated with internal data format conversions. This benefit has to be balanced against visibility of the code and reuse of the variables.
    Oracle® Fusion Middleware Performance and Tuning Guide
    +11g Release 1 (11.1.1)+
    Part Number E10108-03
    But I don't know how to do that. Can you show me ?
    Thank in advance
    Edited by: Doubt_Man on Aug 17, 2011 3:30 PM

    if you return sequences, you can declare the return type of your xquery as xs:double*
    (notice the asterix at the end)
    but I have the impression that in the assign action only the first element will be assigned to the context variable
    (correct me if I am wrong)
    So in fact you might indeed have to transform the sequence into a element()*, or concatenate it into a CVS string - for instance using string-join
    http://www.xqueryfunctions.com/xq/fn_string-join.html

  • How to Parse XML data directly from context variables in webdynpro

    Hello,
       I have two requirements:
    1) I have a context variable which has string value.
       I want to write the this value into a flat file.
       How do I do this in WebDynpro.
       Any sample code for this.
    2) In Webdynpro, I want to parse and process the XML data directly from a string context variable which
       has the value in XML format.
       How do I achieve this. Any pointers or sample codes for this.
    Thanks and Regards,
    Anupama.

    Anupama,
    Here is some link which talks about unpacking xml and converting to HTML.
    <a href="http://help.sap.com/saphelp_nw04/helpdata/en/eb/3dfb402eb5f76fe10000000a1550b0/content.htm">http://help.sap.com/saphelp_nw04/helpdata/en/eb/3dfb402eb5f76fe10000000a1550b0/content.htm</a>
    I have done something like this in portal development and not in webdynpro.But in principle it should work very where.

  • Context Variables related

    Hello,
    In context file we have context variables rite..so kindly tell me the table in which all these context variables will be stored in database.The table name which stores all the context variables.
    Thanks,
    928714.

    Hi;
    Pelase see:
    Oracle EBS R12 Context Variables [ID 458282.1]
    Explanation of Context Variables for Shared Application File System in R12 and 11i [ID 1070152.1]
    PS:Please dont forget to change thread status to answered if it possible when u belive your thread has been answered, it pretend to lose time of other forums user while they are searching open question which is not answered,thanks for understanding
    Regard
    Helios

  • Context variable in report configuration

    Hello,
    I try to create a context variable for a select-option  as indicated in the documentation of the customizing.
    I go in img structure Service Consumption Layer Reporting Administration
       then Report settings
       then Manage context variables
    I define a context group
       then a go to the sub screen Manage context variable
    I define a new variable but in field Contr type, I can only select P for parameter and not S for select option.
    I check the data element /IWCNT/CON_VAR_TYPE which is define  with a value range containing only P.
    Did I do something wrong ?
    I suppose that is why when I define the report, in screen parameters and values,  the fields context group and context variable in display and not in input mode .
    Thasnk ina dvance for your help
    jfj

    Hi,
    Easier option is to create a profit center group excluding the dummy profit center and assign it in the report painter instead of the variable.
    Other option is at the time of executing the report, exclude the dummy profit center with out making any changes in the report.
    Regards
    Sudhakar Reddy

  • Accessing user-defined context variables when chaining Proxies

    We have a Proxy Service, A, which routes to a ProxyService B, which does some routing and XML transformation.
    When an error is raised, the error text is assigned to a variable and the Error Handler for Proxy Servce B assigns soap fault XML to the body using this variable then does a Reply with Failure.
    However, Proxy Service A returns a generic BEA fault as below:
         <con:fault      xmlns:con="http://www.bea.com/wli/sb/context">
         <con:errorCode>BEA-380000</con:errorCode>
         <con:location>
         <con:node>ESB-DefaultRoute</con:node>
         <con:path>response-pipeline</con:path>
         </con:location>
         </con:fault>
    We don't appear to be able to access the context variable which we defined in Proxy Service B when we are in the Error Handler of Proxy Service A. How are we able to return a soap fault from Proxy Service A with all of the details set in B.
    Thanks in advance

    Hi,
    Yes we;re using Raise Error. I don't think my post was as clear as it could have been :-)
    In Proxy B when an error is found, then the text we want to appear in the soap fault's faultstring is assigned to a varaible, errorDetail and then Raise Error is invoked.
    We're able to access errorDetail iin the error handlers of Proxy B but not in Proxy A and it's this which is causing us the issue.
    Thanks

  • Context Handling functions

    Hi,
       Can someone point me to a blog or article which shows real life scenarios for Context handling functions as I want to practice what I have read. I have already read some articles on these functions(removecontext, usoneasmany etc) and I understand contexts and also context change etc

    Hi Sonia,
    Check out this blog and SAP contribution files on Context Handling:
    /people/sravya.talanki2/blog/2005/08/16/message-mapping-simplified--part-i
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/f59730fa-0901-0010-df97-c12f071f7d3b
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/9202d890-0201-0010-1588-adb5e89a6638
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/be05e290-0201-0010-e997-b6e55f9548dd
    Regards,
    Subhasha Ranjan

  • Using context variable in formcalc scripting language.

    Hi all,
             I wanted to know if it is possible to use context variables in formcalc. I wanted to use those variables in "if else" condition in formcalc scripting language. Please post the sample code also as i am new to adobe forms.
    Regards,
    Vinod

    Hi ,
    Each variable define in the context can be used on the layout of the form and/or in script linked to fields.
    This can be done in formcalc or in javascript language , without any problem . You have only to acess the correct variable in the script.
    For getting variable in a script you must define the complete name of the variable, example "Myform.Header.Data.Myvariable" get access to variable MyVariable define in the context under nodes Header/Data .
    Hope it's help you
    regards.

  • Get the name of session bean context variables

    With this lines I get the value of variable "discount":
    Context initial = new InitialContext();
    Context environment=(Context)initial.lookup("java:comp/env");
    Double discount = (Double)environment.lookup("Discount");
    but I need i know the name of the variable. How I get the names
    of context variables?
    Thanks in advance,

    For every form do like:
    <form name="searchForm" method=post action="/servlet/admin">
    <input type=hidden name="FormName" value="searchForm">
    Now req.getParameter("FormName") will return the name of the form.

  • Mapping labview variables to teststand sequence context variables

    hi,
    how can i map variables from a vi (which is loaded in a test sequence in teststand) to teststand sequence context variables ?
    if my question is not clear enough then plz let me know.

    Sure I can help!
    You can use either method:
    Rodéric L
    Certified LabVIEW Architect

  • Problem about get the workflow context

    There are 2 servers.
    One is Weblogic server (server1), deployed a fusion web project on it.
    Another is BPM server (server2), deployed the bpm process on it.
    On the fusion web project, we use API to get the tasks. But we encountered a problem about get the workflow context.
    There are 2 method to get the workflow context.
    1. getTaskQueryService().authenticate(userId, password, null, null), this method need to pass in useId and password, we can get the user form request but can't get
    password.
    2. getTaskQueryService().createContext(request), we pass the request on server1, but can't get the context on server2, exception thrown.
    Appreciate if you can give some help.

    javax.el.ELException: java.lang.SecurityException: [Security:090398]Invalid Subject: principals=[jcooper, ERole]
         at javax.el.BeanELResolver.getValue(BeanELResolver.java:266)
         at com.sun.faces.el.DemuxCompositeELResolver._getValue(DemuxCompositeELResolver.java:173)
         at com.sun.faces.el.DemuxCompositeELResolver.getValue(DemuxCompositeELResolver.java:200)
         at com.sun.el.parser.AstValue.getValue(Unknown Source)
         at com.sun.el.ValueExpressionImpl.getValue(Unknown Source)
         Truncated. see log file for complete stacktrace
    Exception thrown when createContext()

  • Auto-complete not working on variables/functions within a class in FlashBuilder 4.5

    Hi all,
    I'm using Flash Builder 4.5 (not burrito), and I'm not getting auto-complete on variables or functions within the class I'm working in.  It will auto-complete classes, and even variables within another variable, but not a variable within that class.
    As an example, let's say I have a class with this var:
    private var myDate:Date = new Date();
    If I start typing myD, I can't get myDate to autocomplete.  But once I type myDate., I'll get auto-complete for all the variables/functions in the Date class.
    I've tried re-installing FlashBuilder and switching workspaces, but with no luck.
    Also tried creating a brand new test project, but it didn't work there either.
    Anyone have any ideas what might be wrong?
    Thanks!

    Hi,
    After you type "myD" If u press cntrl + space it should auto-complete to myDate. Please raise a bug in http://bugs.adobe.com/flex with the sample project as i am not able to reproduce.
    On the other hand if you were expecting code hint to show up as soon as you type "myD" (without pressing cntrl+space) , Please follow the below step.
    Go to Window -> Preferences -> Flash Builder -> Editor
    check the "use additional custom triggers" check box. Leave the keys as default value .
    That should work for you .

Maybe you are looking for