Updating Variables

Hi
I am still a little confused on using variables...
Here's the what I mean:
I use a Variable in the SQL mapping of an Interface, which is subsequently a step in a Package/Scenario.
At month end, I update the value of my variable (eg. 'Apr' to 'May').
My question is, do I need to do any of the following:
a. Regenerate the scenario?
b. Have a Declare, Set, Evaluate or Refresh step in my Package, which precedes the Interface step containing my variable?
c. Anything else?
Cheers

I would say declare is more or less how we use it in the PL/SQL , so here in ODI if we ever need to pass the value to variable at run time during scenario execution,which later other ODI objects ( say interface or procedure) uses the variable.
Make sure you always call Variable first and then ODI objects using that variable.
Looking at the your first question , if you looking to pass the month manually then go for declare so while executing the scenario you can pass the value.
Else if you are looking for automatically calculate the month , you can have a small query in oracle
SELECT TO_CHAR(SYSDATE,'MON') FROM DUAL and have the variable in refresh mode before the ODI objects calling it.
Hope this solves your issue and requirement.

Similar Messages

  • Checking for an updated variable value in symbol timeline

    I'm making a puzzle which involves moving crates in a specific order to get a character from one side to the other. Take a look at http://tinyurl.com/c4vwcj9 to get the gist of it.
    Each crate is a symbol with it's own timeline. A crate may only move a pre-determined direction and distance once clicked. No more than 2 crates can be pulled out of the grid at any one time.
    The timeline of each symbol has three states: "Original", "Moved" and "Returned".
    If you have a play around with the puzzle as it stands so far, you will see most of the logic arguments work ok. However, the problem I have is when you pull a crate out of the grid and it needs to check if it can move back into place.
    To see what I mean:
    - Pull out the bottom left corner crate
    - Move the crate to the immediate right, thereby blocking the previous crate
    - Try to move the bottom left corner crate again (you should get an error message and it shouldn't move - this is fine)
    - Move the other crate back to it's original position to unblock the previous crate
    - Try to move the bottom left corner crate a final time (you still get the error message and it doesn't move - this is not fine!)
    A quick debug has revealed the second mouse click doesn't fetch the updated variable AFTER the symbol timeline begins to play, but the same methodology works just fine for crates that check for impeded movement BEFORE a symbol timeline is played (try one of the inner crates). Why isn't it getting the updated value and what can I do to solve it?
    Below is a sample of the code specific to the bottom left crate. I've highlighted the variable and arguments specific to the problem. Please excuse what is no doubt poor Javascript coding conventions - I only started learning this last week!
    //-- Get needed variables
    // Check to see if other crate is impeding movement and define value as a variable
    var myCrateCheck = sym.getComposition().getStage().getSymbol("_b_2x1crate_h").getVariable("Crate2");
    // Check to see what this crate's status is and define value as a variable
    var mySelfCheck = sym.getComposition().getStage().getSymbol("_bl_3x1crate_h").getVariable("Crate1");
    // Check to see if other crates have been moved out of the main grid. Parse value as an integer in base 10.
    var myGridCheck1 = parseInt(sym.getComposition().getStage().getSymbol("_br_2x1crate_v").getVariable("Crate3_ grid"),10);
    var myGridCheck2 = parseInt(sym.getComposition().getStage().getSymbol("_bl_4x1crate").getVariable("Crate4_gr id"),10);
    var myGridCheck3 = parseInt(sym.getComposition().getStage().getSymbol("_bl_2x2crate").getVariable("Crate5_gr id"),10);
    var myGridCheck4 = parseInt(sym.getComposition().getStage().getSymbol("_cl_2x1crate_h").getVariable("Crate9_ grid"),10);
    var myGridCheck5 = parseInt(sym.getComposition().getStage().getSymbol("_cl_1x1crate_1").getVariable("Crate13 _grid"),10);
    var myGridCheck6 = parseInt(sym.getComposition().getStage().getSymbol("_cr_3x1crate_h").getVariable("Crate16 _grid"),10);
    var myGridCheck7 = parseInt(sym.getComposition().getStage().getSymbol("_tl_2x1crate_h").getVariable("Crate17 _grid"),10);
    var myGridCheck8 = parseInt(sym.getComposition().getStage().getSymbol("_tc_2x2crate").getVariable("Crate18_g rid"),10);
    var myGridCheck9 = parseInt(sym.getComposition().getStage().getSymbol("_tr_2x1crate_h_1").getVariable("Crate 19_grid"),10);
    var myGridCheck10 = parseInt(sym.getComposition().getStage().getSymbol("_tl_3x1crate_h").getVariable("Crate20 _grid"),10);
    var myGridCheck11 = parseInt(sym.getComposition().getStage().getSymbol("_tr_2x1crate_h_2").getVariable("Crate 21_grid"),10);
    // Create a variable called myGridCheckSum, make sure it's a number and sum the above
    var myGridCheckSum = 0;
    myGridCheckSum = myGridCheck1 + myGridCheck2 + myGridCheck3 + myGridCheck4 + myGridCheck5 + myGridCheck6 + myGridCheck7 + myGridCheck8 + myGridCheck9 + myGridCheck10 + myGridCheck11;
    //-- Logic & Conditional Statements
    // If this crate is in any position other than "Moved", and more than 1 box is already out of grid zone - prevent move and alert
    if ((mySelfCheck != "Moved") && (myGridCheckSum >1)){
    alert('Too many boxes outside of grid zone');
    sym.stop();
    // Or else, if this crate is in any position other than "Moved", but less than 2 boxes are out of grid zone - allow move
    else if ((mySelfCheck != "Moved") && (myGridCheckSum <2)){
    sym.play();
    // If this crate has moved but the other crate hasn't moved, play remainder of symbol timeline
    else if ((mySelfCheck == "Moved") && (myCrateCheck != "Moved")){
    sym.play(3001)
    // If this crate has moved and the other crate is also moved, alert and loop back on timeline
    else if (myCrateCheck == "Moved"){
    // Alert user to say crate cannot be moved
    alert('This box is being blocked by another!');
    sym.play(2999);

    Resolved. Silly little syntax error on a variable rewrite on another symbol!

  • MQ:OSB Assign action failed updating variable "ServiceRequest"

    Hi
    We have a problem with the MQ adapters in Oracle Service Bus.
    If we (by accident/break testing) put messages on the queue that are invalid XML (such as "Banana" as plain text), the OSB goes into an infinte loop with this message, as it can never be dequeued due to:
    <BEA-381901> <Exception in MQ Inbound Request: TransportException EndPoint: T20230_GoodsEvent/ProxyServices/T20230_G
    oodsEvent, com.bea.wli.sb.transports.TransportException: OSB Assign action failed updating variable "ServiceRequest": com.bea.wli.common.xquery.XQueryException: Error parsing XML: {err}FORG0
    005: expected exactly one item, got 0 items
    com.bea.wli.sb.transports.TransportException: OSB Assign action failed updating variable "ServiceRequest": com.bea.wli.common.xquery.XQueryException: Error parsing XML: {err}FORG0005: expect
    ed exactly one item, got 0 itemsThis even prevents the message from being put on the dead letter queue.
    Any hints?

    Correct, but we have tried switching to Text to no avail.

  • OSB : BEA-382510: OSB Assign action failed updating variable

    Hi all,
    I just started learning OSB and created a simple process .
    This is my request :
    <soapenv:Envelope      xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/">
         <soap:Header      xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
         </soap:Header>
         <soapenv:Body>
         <hel:getGreeting      xmlns:hel="http://hello.alsb.com/">
         <!--Optional:-->
         <arg0>string</arg0>
         </hel:getGreeting>
         </soapenv:Body>
         </soapenv:Envelope>
    im getting a error response in Assign:
    <soapenv:Envelope      xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/">
         <soapenv:Body>
         <soapenv:Fault>
         <faultcode>soapenv:Server</faultcode>
         <faultstring>
         BEA-382510: OSB Assign action failed updating variable "Test": weblogic.xml.query.exceptions.XQueryTypeException: {err}XP0006: "element return { {http://www.w3.org/2004/07/xpath-datatypes}untypedAny }": bad value for type {http://www.w3.org/2001/XMLSchema}string
         </faultstring>
         <detail>
         <con:fault      xmlns:con="http://www.bea.com/wli/sb/context">
         <con:errorCode>BEA-382510</con:errorCode>
         <con:reason>
         OSB Assign action failed updating variable "Test": weblogic.xml.query.exceptions.XQueryTypeException: {err}XP0006: "element return { {http://www.w3.org/2004/07/xpath-datatypes}untypedAny }": bad value for type {http://www.w3.org/2001/XMLSchema}string
         </con:reason>
         <con:location>
         <con:node>RouteTo_HelloWorldBiz</con:node>
         <con:path>response-pipeline</con:path>
         </con:location>
         </con:fault>
         </detail>
         </soapenv:Fault>
         </soapenv:Body>
         </soapenv:Envelope>
    This is my Xquery:
    xquery version "1.0" encoding "Cp1252";
    declare namespace xf = "http://tempuri.org/GoodbyeWorld_SB/XQuery/Hello_to_GoodBye/";
    declare function xf:Hello_to_GoodBye($helloStr as xs:string)
    as xs:string {
    replace($helloStr, 'HELLO', 'Goodbye')
    declare variable $helloStr as xs:string external;
    xf:Hello_to_GoodBye($helloStr)
    in my message response pipeln of the proxy service:
    i have added the assign and given the expression : $body/hel:getGreetingResponse/return
    var :Test
    After the assign: i have given a replace activity:
    xpath: ./hel:getGreetingResponse/return
    varabile : body
    Expression : string($Test)
    when i test in OSB console:
    im getting this error:
    <soapenv:Envelope      xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/">
         <soapenv:Body>
         <soapenv:Fault>
         <faultcode>soapenv:Server</faultcode>
         <faultstring>
         BEA-382510: OSB Assign action failed updating variable "Test": weblogic.xml.query.exceptions.XQueryTypeException: {err}XP0006: "element return { {http://www.w3.org/2004/07/xpath-datatypes}untypedAny }": bad value for type {http://www.w3.org/2001/XMLSchema}string
         </faultstring>
         <detail>
         <con:fault      xmlns:con="http://www.bea.com/wli/sb/context">
         <con:errorCode>BEA-382510</con:errorCode>
         <con:reason>
         OSB Assign action failed updating variable "Test": weblogic.xml.query.exceptions.XQueryTypeException: {err}XP0006: "element return { {http://www.w3.org/2004/07/xpath-datatypes}untypedAny }": bad value for type {http://www.w3.org/2001/XMLSchema}string
         </con:reason>
         <con:location>
         <con:node>RouteTo_HelloWorldBiz</con:node>
         <con:path>response-pipeline</con:path>
         </con:location>
         </con:fault>
         </detail>
         </soapenv:Fault>
         </soapenv:Body>
         </soapenv:Envelope>
    aany suggestions on where the issue is.
    im totaly stuck here:
    TIA,
    karthik

    it is not clear at which point you are invoking Hello_to_GoodBye, and using which argument
    anyway it's likely that you are passing an Xml element (a node, something like <hello>Charlie</hello>) instead of a simple type (a string, like "Charlie")
    you should use the function data($body/bla) or text ($body/bla/text() ) to extract the value (Charlie) of your element

  • I need helop with my ALSB Replace action failed updating variable

    System Error Handler
    $fault:      
         <con:fault      xmlns:con="http://www.bea.com/wli/sb/context">
         <con:errorCode>BEA-382513</con:errorCode>
         <con:reason>
         ALSB Replace action failed updating variable "body": Error parsing XML: {err}XP0006: "element {http://rep.oio.dk/tinglysning.dk/svarservice/message/anmeldelse/1/}AndelsbogAnmaerkningStatusModtag { {http://www.w3.org/2004/07/xpath-datatypes}untypedAny }": bad value for type element {http://rep.oio.dk/tinglysning.dk/schema/anmeldelse/1/}AndelsbogAnmaerkningStatus { {http://www.w3.org/2001/XMLSchema}anyType }
         </con:reason>
         <con:location>
         <con:node>PipelinePairNode1</con:node>
         <con:pipeline>PipelinePairNode1_response</con:pipeline>
         <con:stage>stage1</con:stage>
         <con:path>response-pipeline</con:path>
         </con:location>
         </con:fault>
    Edited by: user543916 on Jun 28, 2011 2:28 AM

    you should report also the content of the variable you were trying to assign to $body, and which element in $body you were trying to modify.

  • Updating variables in Framemaker 7.1 book

    I've certain tasks that I do repretitively over a product release. For example, the product version is updated in every release (major or minor). Product version is a variable which I set by opening each file within a book. Each book has several files and there are quite a few books to update. Going down to the file level within each book is very tedious and time consuming.
    Does anybody know how to update variables at the book-level in FrameMaker 7 for Windows?
    Cheers,
    Rupen

    In the Book Window select the files that you want to update. Then use File > Import > Formats to import the updated variables (from your master template file) to all those files in one go. Same procedure as per an individual file, except tht you are using a book file instead.

  • AS3 swf doesn't update variables set via javascript

    Can't figure this one out:  I've got a C4 project with 2 slides.  First slide has a button that executes a Javascript call:
    SetStringVariable("myVar");
    Where myVar is an internal C4 user variable with a default value of "Hello World".
    The second slide has myVar being displayed in a text caption.
    I publish the swf (AS3) and add this javascript function to the .htm file:
    function SetStringVariable(n)
         document.getElementById('Captivate').SetVariable(n, "I set my variable!");
         alert("my var: " + document.getElementById('Captivate').GetVariable(n));
    When you run the project on the web, the alert comes up with "I set my variable!" but the caption on slide 2 still says "Hello World".  Not sure why this occurs since I've just done a round trip with the variable.  It's as if C4 assigns the variable behind the scenes, but the UI doesn't update.  This does not occur if the C4 project is published in AS2.
    Anyone experience this?  Any workarounds?  I'd like to be able to use the SetVariable function in AS3 projects.
    TIA,
    Jim Leichliter

    Steve Howard noted that you can edit the CaptivateMainTimeline.as file typically located C:\Program Files\Adobe\Adobe Captivate 4\ActionScript 3.0\.
    First, I added an external callback:
    try{
                   if((ExternalInterface.available == true) && (parent==stage))
                        myTrace("ExternalInterface is available");
                        ExternalInterface.addCallback("cpSetValue", cpSetValue);
                        ExternalInterface.addCallback("cpGetValue", cpGetValue);
                        ExternalInterface.addCallback("mycpSetValue", mycpSetValue);
                        ExternalInterface.addCallback("mycpSetValue2", mycpSetValue2);
                        ExternalInterface.addCallback("cpSetValueJim", cpSetValueJim);
    Then I wrote my handler for the callback function which was a slight modification to the cpSetValue function that was already there:
         //JBL: For External Interface setting any type of value
              public function cpSetValueJim(variable:String, val):void
              //myTrace("cpSetValue variable1 " + variable + " ; val  " + val);
              var arr:Array = variable.split(".");
              var ref = this;
              for(var i=0; i < arr.length -1; i++)
                   ref = ref[arr[i]];
              ref[ arr[arr.length -1] ] = val; // This works fine for numbers, booleans and strings
    Just make sure you publish your project in AS3.
    You can place some js in a captivate button:
    SetStringVariable("NameOfYourUserVariable");
    Modify the published .htm file by placing in this js function.
    function SetStringVariable(n)
         document.getElementById('Captivate').cpSetValueJim(n, "I set my variable!");
         alert("my var: " + document.getElementById('Captivate').GetVariable(n));
    That's powerful stuff.  Thanks Steve (ACE) for pointing this out!  This opens up a whole new world of possibilities.

  • Problem with update variable value

    i have declase a variable as
    static int small;
    in the public class.......
    then the method "a" will update this "small" to a new value everytime the "a" is called....
    but i could not update the "small " to a new value....everytime is the same value.....
    how could this be solved??

    i think my rpoblem come from other factor.....
    i think i'm unable to remove the selected node from the list....
    eg:
    newtempNode = firstNode;
    tempNode = firstNode;
    for ( int i =0;i < (smallid-1);i++)
    tempNode = tempNode.next;
    for (int i = 0; i< smallid;i++)
    newtempNode = newtempNode.next;
    tempNode = newtempNode.next;
    ==>can the above delete the selected node from the list???
    or anybody can show me how to deleted the selected node from the linked list???

  • How to pass & update variable for each run in ODI

    Hi,
    I am new to the ODI. I am loading the data from src to trg table through interface. I want to maintain the '*create_run_cycle_id & update_run_cycle_id*' columns in the target table.
    For ex: during first run create_run_cycle_id value should be some 1 and update_run_cycle_id should be null.
    During second run create_run_cycle_id should be the same value as previous. But update_run_cycle_id value should be 2. This value should be keep on update with some value.
    For this scenario, i am using the variable, but the variable is not keep on updating based on previous value. I am not aware of the variables in ODI.
    Can anybody please help me?
    Thanks,
    Venkat

    Try asking in the Data Integrator forum:
    Data Integrator

  • Updating variable no. of records in a DB from JSP

    I have a page generated dynamically (by querying the DB). This page lists all the vehicles which are to be approved. The list has a column of Applcation nos., another column of the proposed Registration nos. and a check box against each row (each row has an application no and a registration no). Depending on which applications have been OKayed (which is done by checking the check box), the Database is to be updated on hitting the "submit" button. How can I do that as the no of rows selected (records) can be different each time. Also is it better to update the Databse directly from the jsp page (if it can be done) or is it better to use an EJB to do this (the jsp calls an EJB which updates the Database), in which case how is it done?
    I am a beginner so please help me out.
    Thanks & buy

    I will try to help you, but in fact I'm a newbie too (1 months of experience).
    First you'd better create an EJB that will run your statment on your server instead of your client (you will earn time).
    Otherweise you can use a resultset with an update method according to your variable type. If you choose this way be careful to set up an JDBC 2.0
    Hope this help
    STF

  • Update variable after datagrid edited

    I have 4 variables that are numbers being retrieved and assigned to an arraycollection for a datagrid
    private var myDataProvider:ArrayCollection= new ArrayCollection([{col1:'Approaching headlights', col2:myVar1},
    {col1:'Bright lights in my eyes', col2:myVar2},
    {col1:'Dogs Barking', col2:myVar3},
    {col1:'Fighting with friends', col2:myVar4}]);
    The datagrid (col2) gets sorted in descending order and then the user is able to change the values.  Somehow I need to have the corresponding variable updated if/when a user edits that particular cell.  If I'm on the line with Dogs Barking and edit the value from say," 3" to "5", then myVar3 needs to be updated to "5' as well.  The datagrid could be in any order depending on what values have been assigned to each and I can't find a way to get those variables updated.

    Then you may be interested in the property "rendererIsEditor" available to datagrid columns.  Here is an adobe link going into more depth
    along with an example.
    http://livedocs.adobe.com/flex/3/html/help.html?content=celleditor_3.html

  • Update variables in Movie Clip

    Hi!
    Is there anybody who can help me with a simple (?) problem:
    I have loded a movieclip into a movie:
    var mcl:MovieClipLoader = new MovieClipLoader();
    mcl.loadClip("Legend_movie.swf",legend_mc);
    In the main movie a variable is changed by on EnterFrame:
    figure_mc.onEnterFrame = function() {
    size = circle_map_mc._width;
    The variable "size" is also used by the movie clip.
    Can anybody tell me how the movie clip can be updated for
    each "onEnterFrame"?
    At the moment the movie Clip only reads the variable "size"
    at the first frame...
    tm

    Hi!
    Actually it is circle_map_mc that is declared on the main
    timeline and changes in a motion tween....
    In my movie clip I have tried:
    shadow_mc._width = _level0.circle_map_mc._width;
    and
    shadow_mc._width = _root.size;
    Both updates the movie clip once, but I need a continous
    updating as long the variable is changing (along the time line) in
    the main movie... Any cloue?

  • Trouble updating variables

    Hi guys,
    This is proabably a really easy answer that i'm missing, but I've been staring at this code for several hours now, and am not making much progress. It is suppossed to be a simple game of craps. I am having trouble getting the variable amount to update. Here are the bits of the code dealing with amount. Please let me know if you need anything else.
    Also, I know the code is really messy, I just started learning java, and am still trying to wrap my head around the basics. Any suggestions you have would be appreciated.
    public void begin(String name, int amount, final int GOAL){//start begin method
         getBet(amount); //calls the method to get the player's bet
         playGame(bet, amount);
         dispMessage(win, bet, amount, name);
         System.exit(1);
    } // end begin method
    public void getBet(int amount){//start getBet
        JOptionPane.showMessageDialog(null,"You currently have "+amount+
        " dollars.  Your goal is 300 dollars.", "Current Money", JOptionPane.INFORMATION_MESSAGE);//tells player current amount of money and the goal they are trying to reach
              String input = JOptionPane.showInputDialog (null,        //prompts for the amount of the bet
           "Please enter the amound you wish to bet",
           "Place Bet", JOptionPane.QUESTION_MESSAGE);
            bet = Integer.parseInt(input);
         if(bet>amount) //error checks the bet amount
         JOptionPane.showMessageDialog(null, "You do not have enough money to place that bet. Please enter another amount.",
         "Error Message", JOptionPane.ERROR_MESSAGE);
         getBet(amount);
    else
         return;     
         }//end method getBet
    private void dispMessage(boolean win, int bet, int amount, String name) {
         if (win == true){          
             winBet(bet, amount);
              JOptionPane.showMessageDialog(null, ""+name+" you won "+bet+
              " dollars. You now have "+(amount)+ " dollars.   To play again, press enter", "Winner", JOptionPane.INFORMATION_MESSAGE);
              playGame(bet, amount);
         else
              if((win == false)&&(amount>=0)){
             loseBet(bet, amount);
              JOptionPane.showMessageDialog(null, "You lost the game. You now have "+amount+
              ". To play again, press enter.", "Loser", JOptionPane.INFORMATION_MESSAGE);
              playGame(bet, amount);
         else
         JOptionPane.showMessageDialog(null, "You are out of money", "Loser", JOptionPane.INFORMATION_MESSAGE);
         playGame(bet, amount);
         }//end dispMessage method
         public int winBet(int bet, int amount){//start winBet method
                   amount = amount +bet;
                   return amount;
                   }//end winBet method
         public int loseBet(int bet, int amount){//start loseBet method
                   amount = amount-bet;
                   return amount;
                        }//end loseBet method
         class DicePlayer{// DicePlayer class
        String name = JOptionPane.showInputDialog (null,//prompts for the amount of the bet
           "Please enter your name",
           "Enter Name", JOptionPane.QUESTION_MESSAGE);
        int amount = 100;//player starts with 100 dollars
        final int GOAL = 300;  //player needs to reach 300 dollars          
    } //end of DicePlayer class
    [\code]                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   

    And to help you one step further (feeling generous), make your
    winBet method like this:
    private int winBet(int bet, int amount){
        return amount + bet;
    }then the call the jfbriere gave you will work.
    amount = winBet(bet, amount);
    But maybe you figured all this out already?

  • Update Variables through Global Interactive

    Hi,
    I need to update some project variables through a global interactive activity.However,the only problem is that my global interactive does not have instance access.This is so because of i am trying to club two or three funtonalities at one place so that the user has less number of clicks.Hence can anybody suggest any other alternative way to acheive the same.
    Any kind of suggestions will be of great help...
    Ritu

    Backing up a bit, a correlation is like a primary key on a database table. It is a way you can uniquely identify and notify a work item instance in a process. Notifications into a process can either use the unique id.id (e.g. "/ProcessName#Default-1.0/1/0@ProjectName") which is difficult to determine, or a correlation (e.g. order "22378").
    As a developer, there are quite a few moving parts to getting this to work using a Message Wait activity that has an interrupt. Not trying to dissuade you, but I believe you might find that there are more "clicks" that the end user has to do using this technique than if you used a Global Interactive that has instance access.
    If you have not done this before, here are the high level steps you'll need to do as a developer:
    A. Set up the Message Wait activity flow:
    1. Add a Message Wait activity outside of any transitions currently in your process.
    2. Change the Message Wait activity's property to "Allows interruptions"
    3. Change the Message Wait activity to receive input argument(s)
    4. Modify the Message Wait activity to receive the correlation
    5. Add an Interactive or Automatic activity beside the Message Wait activity
    6. Add a transition from the Message Wait activity to the Interactive or Automatic activity.
    7. Add the logic inside the Interactive or Automatic activity to update the project variables and to send the work item instance back to where it was interrupted in the process.
    B. Create the correlation in the process
    1. Create the correlation inside the process for the instance using either an automatic activity or the Begin activity
    C. Create the Global Interactive activity to Notify the process
    1. Add a Global Interactive activity
    2. Add the logic to send the notification to the specific work item instance
    D. Remove the Correlation from the process
    1. Once there is no more need for the correlation, remove the correlation inside an Automatic activity (commonly done in an Automatic activity just before the End activity)
    In answer to your question - just a guess, but you are getting the correlation error probably because you might not have done one or more of these items listed above correctly (specifically items A3, A4, B1 and / or C2).
    Dan

  • Updating variable problem

    i am writing some code that updates a variable but the facing variable never seems to change, i want it to be updated at the end of every call from the main class
    it seems to keep the value of Zero
    any help would be great Eoin
    public class RobotMover
    Navigator robot;
    private final int NORTH = 0;
    private final int SOUTH = 180;
    private final int WEST  = 270;
    private final int EAST  = 90;
    int facing = 0;
    int clockWise  = 90;
    int antiClockWise  = -90;
    public RobotMover(Navigator newRobot)
    robot = newRobot;
    public void north()
         //if facing north : forward ()
              if(facing == NORTH)
                   LCD.drawString("north", 0, 3);
                   robot.travel(25);
                   int facing = NORTH;
         //if facing south : rotate180(); forward ()
              else if(facing ==SOUTH)
                   LCD.drawString("south to north", 0, 3);
                   robot.rotate(180);
                   robot.travel(25);
                   int facing = NORTH;
         //if facing west  : rotate90Anticlockwise(); forward()
              else if(facing ==WEST)
                   LCD.drawString("west to north", 0, 3);
                   robot.rotate(clockWise);
                   robot.travel(25);
                   int facing = NORTH;
         //if facing east  : rotate90Clockwise(); forward()
              else if(facing == EAST)
                   LCD.drawString("east to north", 0, 3);
                   robot.rotate(antiClockWise);
                   robot.travel(25);
                   int facing = NORTH;
    } the rest of the methods are similar setting facing in the given directions. however when called from main doesn't update from 0;
    Edited by: Chuckie on Aug 9, 2009 2:26 PM

    stevejluke wrote:
    In each of your if statements you are creating a NEW locally scoped (to the IF statement) variable named facing, and assigning the direction to that.
    Get rid of the int before each of the facing assignments:
              if(facing == NORTH)
                   LCD.drawString("north", 0, 3);
                   robot.travel(25);
                   facing = NORTH;
    After you get rid of the local declarations, please also notice that you are always setting facing to NORTH

Maybe you are looking for

  • DNS - Between Active Directory Domains

    Hi to all. I am in the process of migrating objects from domain A (10.26.x.x) to domain B (10.44.x.x). Servers and Services in domain A must remain visible to objects migrated to domain B. AD trust is in place (forest). I have a laptop on site of dom

  • Photos sent in email to my firefox also open up internet explorer all updates are okay

    when photos are sent to me by email when i view them in firefox internet explorer also opens up in the background mozilla is my default browser. also difficult in windows 7 to view as slideshow or download the photos. ???

  • Errors found in the burning process

    I use to never have problems burning iDvd's. Now every time I try, it comes up with this message about an hour after working on the dvd: "The recording device reported the media error: Power calibration area error. (0x73, 0x03.)" What does that mean

  • DataScroller problem while delete the recoreds using checkbox

    Hi all I am new for jsf. I am using datascroller working with Tomahawk.My requirement like . I need to display 15 records in a page.And every row having checkbox which is used for delete the record. These are all working fine.Problem is if i delete a

  • Weird arithmetic bug

    I'm trying to divide a list of data into a table of 5 rows, and as many columns as needed to hold the list of data. Here is the getColumnCount method of the TableModel:         public int getColumnCount() {             System.out.println("abilities.s