how to run external executable file inside Biztalk

Home Page Forums BizTalk 2004 – BizTalk 2010 how to run external executable file inside Biztalk

Viewing 1 reply thread
  • Author
    Posts
    • #15338

      I think it would be possible right?

      I would create a class library — \”SampleLibrary\”, including:

      Class ToRun(parameter1)
      {

      Process p = new Process();
      p.StartInfo.FileName = \”C:\\bla\\program.exe\”;
      p.StartInfo.Arguments = \”\”; //The command line argument
      p.Start();
      }

      then reference to this library in biztalk project, and in orchestration just use it directly:

      SampleLibrary.ToRun(parameter1)

      Any advice would be appreciated, thanks.

      Merry

    • #15339

      Or if you declared the method static e.g. static void ToRun(parameter1) you will not need an instance of the class in the orchestration.

      • #15340

        That is exactly how you would do it. There are of course a few things you need to do in order to get this working fine in your solution.

        first, declare a orchestration variable of the type of your class, This takes place of the declaration in a C# app. (ie. string something;)
        Then, in an expression shape, simple create a new instance and use as you would normally.

        make sure that your class is serializable or you will need to put this expression shape in a scope

Viewing 1 reply thread
  • The forum ‘BizTalk 2004 – BizTalk 2010’ is closed to new topics and replies.