Ejemplo n.º 1
0
    public void Main(IGalaxy galaxy, Transaction init)
    {
        galaxy.LogInfo ("Script running");

        // Create and send lifesign transaction to SM_A
        Transaction trans = new Transaction ();
        trans.tptf.Session = galaxy.Session;
        trans.tptf.DestComp = "SM_A";
        trans.tptf.DestFunc = "LIFE";

        // Just add some FICS data
        trans.fics.Add ("aString", "abc");
        trans.fics.Add ("anInteger", 123);

        uint id = galaxy.Send (trans);
        trans = galaxy.Wait (id);

        if (!trans.Ok) {
            trans.Dump ();
            galaxy.LogError ("Transaction failed(result = {0}", trans.tptf.Result);
        }

        galaxy.LogInfo ("Script done");
    }