How to access a variable in workflow

Hi All,
1)Can a user-defined variable be accessed in workflow? If yes,how??
2) whether or not every idoc function runs in the workflow or only workflow specific functions can be used there?
(idoc reference guide says nothing abt whether non-workflow functions working under workflowcustomization area)
3)I am trying to pull all the metadata options (multiselect) options in a variable and then i want that variable (which will now contain a string) to be used as a token .how can i go for it?
4)where can we see the output of idoc scripts when we write customization scripts in UCM (apart from the reflection of changes happening if the script is proper)
Thanks in Advance.

I think what you are saying is that you want to create a token based on the values in a metedata field that is popuated by a multiselect list. This requires that you have a multiselect list where you add user ids to a metadata field
To do this from the Workflow Admin applet
Options > Tokens... > Add
Give the Token a Name and Description and then paste the following into the script area
You will have to change the value of xReviewers to the name of your custom metadata field.
<$rsMakeFromString("wfReviewers",xReviewers)$>
<$loop wfReviewers$>
<$wfAddUser(wfReviewers.row, "user")$>
<$endloop$>
Is this what you need?
Tim

Similar Messages

  • How to access system variables in Script Component in data flow task in SSIS

    Hi,
    I am new to SSIS. Can someone tell me how to access system variable in Script Component in SSIS using C# code.
    Thanks

    You can use the System.Environment.GetEnvironmentVariable(...) to read the variables. An example is here:
    http://msdn.microsoft.com/en-us/library/y6k3c7b0.aspx
    Vikash Kumar Singh || www.singhvikash.in

  • How to access _global variables in different domain

    hi
    i am loading a swf in local and this has to be communicate the swf which was in the server(different domain). using the system.security.allowdomail i can access the variables, but i can't able to access _global variable.
    Pls tell how to access _global variable in different domain
    Thanks in advance
    @flash

    Ganesh,
    It should work the way you mentioned it. I don't see why it
    didn't unless there is a spelling mistake or something. If there
    is you should have a got an error message. :-)
    I actually don't recommend using globals at all, I would rather
    use a PL\SQL Package Specification to define Global Variable.
    These variables are valid for the duration of the Session and
    they are restricted to Char(255) limit. It reduces the number of
    mistakes when converting dates and Such. It also forces the
    developers to place all the globals in one place instead of
    multiple places. Read Feurstein's book on PL\SQL Programming for
    more details.
    Sunil
    MS Ganesh (guest) wrote:
    : Hi Steve,
    : I know how to assign values to global variables.
    : I did the following
    : Form Name : FIRST_FORM
    : :global.group_id := 'SUPERVISOR'
    : call_form('SECOND_FORM');
    : In Second Form
    : When New Form Instance
    : Message(:global.group_id);
    : No message is displayed.
    : Please explain to me the steps in detail.
    : Thanks in advance.
    : Bye
    : MS GANESH
    : Steve (guest) wrote:
    : : Just assign value to global variable i.e.
    : : :global.foo := 'anything'; or
    : : COPY('anything', 'global.foo');
    : : to remove global variable
    : : ERASE('global.foo');
    : : Note: global variables are always VARCHAR2(255);
    : : MS Ganesh (guest) wrote:
    : : : Dear OTN Members,
    : : : I would like to pass values between forms,
    : : : I know it is possible to do it by using Parameters.
    : : : But I would like to know how to use global variables to
    : : : accomplish the same task.
    : : : Thanks in Advance.
    : : : Bye
    : : : MS Ganesh
    null

  • How to access a variable from within a symbol.

    How do I access a variable set outside a symbol from within that symbol?
    Thanks

    If you set a variable on stage ,say
    sym.setVariable("stageVariable", "I am stage variable");
    You can access it from within  a symbol using :
    var myVariable = sym.getComposition().getStage().getVariable("stageVariable");
    Basically you need to get handle to the symbol in which the variable is defined.

  • How to access a variable in if clause?

    Hi Friends,
    I have declared a varialbe like this
    <?xdoxslt:set_variable($_XDOCTX, ’cnt’, 10)?>
    Now if i want to access the variable in "if" clause ,something like
    <if:cnt=10?>
    How can i access it?

    Hi,
    try the following
    <?if:xdoxslt:get_variable($_XDOCTX, 'cnt')= 10?>
    Your logic goes here
    <?end if?>
    regards
    Rupesh

  • How to access Websphere variables using java

    Hi
    I want to access Websphere variables using java.
    Any help is appreciated!!
    Thanks
    P

    WebSphere Application Server has a bunch environmental variables such as log locations. These are held at the "server", "node", and "cell" level.
    To access them, you have to get the right context. Something like this, I believe...
    InitialContext initialContext = new InitialContext();
    initialContext.lookup("foo:bar/baz/blah"); //correct context hereGo to the IBM website for WAS and do a search on namespace bindings. That should give you some more information.
    Good luck.

  • How to access properties of running workflow 2013 instances?

    Hi there,
    I am trying to figure out how I can access properties of a running workflow instance. I have created the following PowerShell:
    Add-PSSnapin microsoft.sharepoint.powershell
    $web = Get-SPWeb http://app-72b5c37f94da1d.apps.sharepoint2013.local/sites/appdev/SharePointWorkflowApp
    $wfm = New-object Microsoft.SharePoint.WorkflowServices.WorkflowServicesManager($web)
    $list= ($web.lists|where Title -eq "List1")
    $sub = $wfm.GetWorkflowSubscriptionService()
    $subscriptions = $sub.EnumerateSubscriptionsByList($list.ID)
    $inst = $wfm.GetWorkflowInstanceService()
    $instances= $inst.Enumerate($subscriptions[0])
    $instance= $instances[0]
    $instance.Status
    $instance.UserStatus
    $instance.Properties
    I am not able to retrieve the arguments or variables via this route. Only UserStatus is a valid working option at this point.
    The variables and arguments of the sequence which I have configured via Visual Studio 2013's Workflow Designer, resulted in the following xaml:
      <x:Members>
        <x:Property Name="EenArg" Type="InArgument(x:String)" />
        <x:Property Name="argument1" Type="x:String" />
        <x:Property Name="argument2" Type="InOutArgument(x:String)" />
        <x:Property Name="strArg" Type="InOutArgument(x:String)" />
        <x:Property Name="intArg" Type="InOutArgument(x:String)" />
        <x:Property Name="dateTimeArg" Type="InOutArgument(x:String)" />
      </x:Members>
    None of which are propagated via de Properties collection. 
    What am I missing here?

    Hi,
    To access the properties of a workflow instance, here is a blog with code demos for your reference:
    http://ranaictiu-technicalblog.blogspot.com/2013/05/sharepoint-2013-workflow.html
    Thanks
    Patrick Liang
    Forum Support
    Please remember to mark the replies as answers if they help and unmark them if they provide no help. If you have feedback for TechNet Subscriber Support, contact
    [email protected]
    Patrick Liang
    TechNet Community Support

  • How to access enviroment variables on 10.1.2.3??

    We would like to add and access the environment variables from jsp/java, does anyone know how to do so? We have added them to the server in the env var section, but are unable to access any of them?! Help!

    Tried that. Throws a genEnv is deprecated error. It does however work on 10.1.3. (which is frustrating) I switched it to use the java.util.Properties p = System.getProperties(); But it doesn't show up in that list either.

  • How to access (call) variables from multiple components

    I have what I think is a basic task, but I cant seem to get it to work.  I have a Flex project with one application.  In addition to the one application, I have many components that are used in the application.  These components vary from simple (a ComboBox) to complex (many sub-components).  What I need to do is define a viable in one component and access it in another component.  I can't seem to do this.  Below is an example of how I think it should be:
    Component1
    <mx:Script>
           <![CDATA[
            [Bindable]
            private var userID:int=0;
           ]]>
    </mx:Script>
    Component2
    <mx:TextInput  text="{Component1.userID}"/>
    Any help you can provide would be beneficial.
    Lee

    Hello,
         You may also want to consider using the mx.core method.
         In your main application script area define all of your public variables and functions. Then from your component, you can reference these absolutely with the following syntax.
    <!-- Main App -->
    [Bindable]
    public var userID:int;
    <!-- Component -->
    private function init():void {
         var com_UserID = mx.core.Application.application.userID;
    Using this method ensures that you will have access to any Function or variable within the scope of the project.
    Kind Regards,
    Dr. Ivan Alexander, Ph.D.
    Sr. Applications Engineer
    FlexAppsStore.com
    Sun Microsystems
    MySQL Enterprise Ready Partner 2009

  • How to access a variable from inside another symbol

    So i did this tutorial, Leveraging Independent Symbol Timelines created by Eliane...it's rockin, btw.  ;-)
    All's well but now i have a symbol on the stage called mc-home.  inside of mc-home is a button called btn-go.
    On the stage in composition ready there's a variable sym.setVariable("current", "mc-home");
    This code works for a symbol that's on the stage but, how do i get this code to work on a button that's inside another symbol that's on the stage?
    var current = sym.getVariable("current");
    if (current != "") {
        sym.getSymbol(current).play("OUT");
    sym.getSymbol("mc-something").play("IN");
    sym.setVariable("current", "mc-something");

    sorry, i was kind of confused myself too, don't worry about it but thanks for your patience for reading it anyway

  • How to access a variable from a dynamically included JSP page

    I have a jsp (say main.jsp) using the following in its code :
    <jsp:include page="menu.jsp" flush="true" />
    I have a variable in menu.jsp which I would like to use in my main.jsp.
    How do I get the value of the variable defined in menu.jsp ?
    I called this variable in menu.jsp, Public, but this didnot help me use the value of that variable in main.jsp
    Any help is highly appreciated.. thnks a lot

    I do notice the variable var1 has the value populated - in menu.jsp - (from View -->
    Source in the browser) but for some reason not able to use it in main.jspI'm not quite sure of the way your jsps are structured from your code snippet but I think there is something to be aware of here that may be part of your problem, namely the difference between the include directive and the include action.
    You are currently using the include action, this treats the included resource as a dynamic object - i.e. a request is sent to that resource and the resulting response is included in your page. So when you think of what there is no java variable actually included - you'll just get the resulting HTML that is generated by menu.jsp
    The include directive, as in <%@include file=�menu.jsp � %>, on the other hand treats the resource as a static object. This means the actual bytes in the included resource are inserted into the including jsp and then the result of that is compiled and processed, effectively you are cutting and pasting the menu.jsp into your calling jsp. In this case the variable would be available to the calling jsp.
    However this approach does bring other difficulties that may break your current code, you'll just have to try it and see what happens.
    Hope that's relevant to your problem,
    Matt

  • How to access a variable from one mxml to another mxml?

    I have Vbox having Hbox in turn hbox has some components ...TextInput...
    I m adding this Vbox in another mxml file....iteratively ....
    I need the sum of all the enetered values in the text boxes to be displayed on the textbox in another Mxml ...
    I am taking sum in a variable and want to show tha some in another file...
    How can I get that variable in my resultant mxml??
    TIA

    In this case it is best to use custom events to pass data. Here are some resources:
    http://chikaradev.com/learning/flex3/customevents/StudentsTutoringCustomEvents1.pdf
    http://chikaradev.com/learning/flex3/customevents/CustomEvents3/CustomEvents3.html
    http://livedocs.adobe.com/flex/3/html/help.html?content=createevents_3.html
    If this post answers your question or helps, please mark it as such.
    Greg Lafrance - Flex 2 and 3 ACE certified
    www.ChikaraDev.com
    Flex / AIR Development, Training, and Support Services

  • How to access a variable from one program to another (independent)

    Hi,
    My requirement is to use a variable(value) from one program(prog1) to another (prog2). how is it possible.
    Regards
    Arani Bhaskar

    Go for memory id .
    passing on values from one program to another program
    Program1
    EXPORT (variable) TO MEMORY ID 'LOC'.
    Program2
    IMPORT (variable) FROM MEMORY ID 'LOC'.
    LOC is the address , for more press f1 on export in abap editor.

  • How to access javascript variable's value in a jsp tag?

    Is there any way to access the value of a javascript variable in jsp?

    Hi
    by the way your question is ambigous, i understand the question to some extent here i there is a sample code which may be help full to you. As this problem is faced by me when i was developing some dynamic pages in my company.
    <%@ page language="java" %>
    <html>
    <head>
    <script language="JavaScript">
    var i = 10;
    var k = 20;
    </script>
    </head>
    <%
         String Jspi = "";
         Jspi = ("<script>document.write(i);</script>");
         out.println(Jspi);
         Jspi = ("<script>document.write(k);</script>");
         out.println(Jspi);
    %>
    </body>
    </html>
    This will help u out.
    Cheers
    Rambee

  • HOw to access a variable in another scriptlet ?

    I declare a integer variable and want to access it in another sciptlet in the same page.That scriplet is to display a value in a table.
    The table is in a top level loop.I want to update the same variable in inner loop so that when I again go to the top level loop I should be able to get the updated value.

    Think of scriptlets as small sections of code within the same method. The entire JSP is one method, and your scriptlets are executed within that method just like it normally would. All HTML gets basically broken down into out.println(String) calls wrapped around any scriptlet calls. So if you had this
    bunch of HTML
    <% int bob; %>
    bunch of HTML
    <%for(; bob < 10; bob++)
    %>
    bunch of HTML
    <%
    %>That gets translated into
    out.println("bunch of HTML");
    int bob ;
    out.println("bunch of HTML");
    for(;bob < 10; bob++ )
        out.println("bunch of HTML");
    }

Maybe you are looking for

  • How can I print a document please

    I Don't believe this! I have now posted the same question twice. What about the help available 24/7. For technophobes like me this is no help.

  • Plz help with BDC coding

    Hi, In the QM view of mm02 I have 5 rows containing inspection types 1,2,5,7,15. When I do the BDC recording to delete insp type 5, the BDC cursor is on position (03) RMQAM-SELEKT(03). How do I write the BDC code to select the row based on inspection

  • Seperating management and normal service on two different LAN interfaces

    We would like to keep administration and general service of Windows Servers seperate on two different LAN interfaces "A" and "B" (on "dual home" machines i.e. machines with two network interfaces). Is this feasible so that no administration can be pe

  • Enhance ments

    Hi experts, I need guidance on Customers exits and user exits (Function Exit, Screen Exit,Menu Exit, Field Exit, Table Exit, Text Exit). and please forward me any details material available on these. this is my mail id : [email protected] Thanks in a

  • Why does my iPhone 5 keep freezing? Is it iOS 6?

    Any one else having freezing issues,calling fail issues and slow Internet?