Zum Hauptinhalt gehen

RunExternalCommand - other executables

Kommentare

3 Kommentare

  • Permanently deleted user

    This task is just for Silverlight Viewer commands. You'll find a list of the commands that can be accessed in your Silverlight Viewer Administrators and Developers guide, available for download next to the Viewer. You can also add your own custom commands to the list by implementing them in a viewer module.

    0
  • Permanently deleted user

    You could also use the InvokeMethod activity, which is not restricted to Viewer commands but is more complicated to implement. See the Draft Workflow Designer Guide available under the Essentials 3.6 Downloads page, and also (http://msdn.microsoft.com/en-us/library/system.activities.statements.invokemethod.aspx) here  for more information.

    -Victoria

    0
  • Ryan Cooney

    Just a couple clarifications.

    The RunExternalCommand activity will only run registered named commands in a viewer application. This is client-side only. The commands in our Silverlight Viewer's Infrastructure assembly (the ones documented in the the Silverlight Viewer Admin Guide) are all registered. You can register your own custom commands two ways:

    1. Decorate a public static ICommand property with the [NamedCommand(string name, Type parameterType)] attribute giving it a unique name and the parameter type of the command.
    2. Explicitly call CommandRegistry.RegisterCommand(string id, ICommand command, Type parameterType) with a unique name, your command, and the parameter type of the command.

     

    The InvokeMethod activity will allow you to call methods on arbitrary .NET objects and types. This is server-side only. You can not use InvokeMethod to call methods in the viewer application. If you are not familiar with using "Reflection" as a coding pattern this activity will probably be a little scary.

    --Ryan

    0

Bitte melden Sie sich an, um einen Kommentar zu hinterlassen.