Building own Message Activity with Orchestrator Integration Toolkit (OIT)

Bewertung:  / 7
SchwachSuper 
Erstellt am Dienstag, 10. April 2012 Geschrieben von Stefan Horz

Recently I often have seen the „Send Platform Event” Activity to demonstrate the behavior of Runbooks. The messages will be visible in the Event Tab of the Designer then.

I personally think a popup is for demo and training purposes much more effective. Here we will build our own “Popup-Activity” using Orchestrator Command-Line Activity Wizard from Orchestrator Integration Toolkit (OIT).

Perhaps you know the old “Popup”-Object from Opalis. Because it was built on “net send” using the  “Windows Messenger Service” which doesn’t exist in Windows 2008 anymore it has gone. A possibility for sending messages to Windows 7 or Windows 2008 Computers is the “msg”-command.

C:\Users\Administrator>msg /? Send a message to a user.

MSG {username | sessionname | sessionid | @filename | *}     [/SERVER:servername] [/TIME:seconds] [/V] [/W] [message]

Based on the “msg”-command we will create our own activity for messages using Orchestrator Command-Line Activity Wizard from Orchestrator Integration Toolkit.

The Orchestrator from Orchestrator Integration Toolkit can be downloaded here.

After the installation we start the Orchestrator Command-Line Activity Wizard from the Start Menu.

Because we have no own dll to load we click “Next”.

01 

As Assembly Details we provide the Name “OwnIP” and the Assembly file “owndll”.

02

Now we click on “Add” to add our own Command.

03

We have to fill out the General- and the Arguments-Tab.

General-Tab Name: Popup, Mode: “Run Command”

04

At the Arguments-Tab we first add the parameters. Later in the Runbook we can fill this parneters with text, Variables or Published Data.

05

 

Then we create the command inserting the parameters: msg $(User) /server:$(Computer) $(Message)

06

At this time we do not add a additionally activity an click „Next“.

07

After building the assembly we will build an Integration Pack.

08

Product name: Own IP
Category name: New Notification
Company: My Company

09

We only have the one Popup Activity

10

and do not need to deploy any additionally resource files for this command.

11

We save it as “OwnIP.oip”

12

Now you can register and deploy your Integration Pack like any other Integration Pack.14