Vous êtes sur la page 1sur 9

Opalis Integration Server Workflow

Microsoft Corporation Published: February 2010

Copyright
This document is provided as-is. Information and views expressed in this document, including URL and other Internet Web site references, may change without notice. You bear the risk of using it. Some examples depicted herein are provided for illustration only and are fictitious. No real association or connection is intended or should be inferred. This document does not provide you with any legal rights to any intellectual property in any Microsoft product. You may copy and use this document for your internal, reference purposes. You may modify this document for your internal, reference purposes. 2010 Microsoft Corporation. All rights reserved. Microsoft, Active Directory, ActiveSync, Internet Explorer, JScript, SharePoint, SQL Server, Visio, Visual Basic, Visual Studio, Win32, Windows, Windows PowerShell, Windows Server, and Windows Vista are trademarks of the Microsoft group of companies. All other trademarks are property of their respective owners.

Revision History
Release Date Changes

February 2010

Initial version of document

Contents
Opalis Integration Server Workflow .............................................................................................. 5 How to Build an Opalis Workflow .............................................................................................. 5 How to Test the Workflow......................................................................................................... 8

Opalis Integration Server Workflow


This document describes the process to build a workflow by using Opalis Integration Server. This workflow emphasizes the features of the Opalis Databus technology and the Opalis Foundation Library of Objects.

In This Section
How to Build an Opalis Workflow
Describes how to build an Opalis workflow with branching logic.

How to Test the Workflow


Describes how to test an Opalis workflow.

How to Build an Opalis Workflow


This topic describes how to build an Opalis workflow by using branching logic. To create an Opalis workflow 1. On the taskbar, click Start, click All Programs, and then click Opalis Software. 2. Click Opalis Integration Server, and then click Opalis Integration Server Client. 3. Start the Opalis Integration Server Client. 4. Click the Policies folder. 5. Click the New Policy icon. A new New Policy tab appears in the designing workspace with the name New policy. 6. Right-click the New Policy tab and select Rename 7. Rename the Opalis policy to Append and Copy Workflow and press ENTER. 8. On the menu bar, click Check Out. You have defined a new workflow and are ready to begin adding and configuring Opalis objects. To add and configure a Monitor File object 1. In the Opalis Integration Server Client with the newly created Append and Copy Workflow policy open, expand the File Management category in the Object Palette.

2. Click and drag the Monitor File object to the Designing Workspace. 3. Double-click the Monitor File object to edit the properties. 4. Enter the name of the folder to be monitored, in this case C:\Drop. 5. Click Add. 6. In the Filter settings tab, select Name, and then select File Name. 7. Set relation to Matches Pattern. 8. Set value to *.txt. 9. Click OK. 10. Click the Triggers tab. 11. Select Trigger if one of the files was created. 12. Click Finish. The Monitor File object is created and configured to watch for any files in the target folder. To add branching logic to a workflow 1. In the Opalis Integration Server Client with the Append and Copy Workflow policy open, expand the File Management category in the Object Palette. 2. Click and drag the Copy File object to the Designing Workspace. 3. Expand the Text File Management category in the Object Palette. 4. Click and drag the Read Line object to the designing workspace. 5. Create a link between the Monitor File object and the Copy File object by clicking and dragging the right arrow of the Monitor File object to the Copy File object. 6. Create a link between the Monitor File object and the Read Line object by clicking and dragging the right arrow of the Monitor File object to the Read Line object. By adding both the Read Line object and the Copy File object and creating a branch, these objects will use the same set of data and run in parallel. To configure a Copy File object 1. In the Design window, double-click the Copy File object to edit the properties. 2. Select the Details tab. 3. On the Monitor File object, right-click the File: Edit box, click Subscribe, and then click Published Data. The Published Data dialog box opens. 4. Select Name and Path of File. 5. Click OK. 6. Enter the name of the Destination folder, in this case C:\Copy. 7. Click Finish. The Copy File object is configured to copy files from the target folder to the destination folder. 6

To configure a Read Line object 1. In the Design window, double-click the Read Lines object to edit the properties. 2. Select the Details tab. 3. On the Monitor File object. Right-click the File: Edit field. Select Subscribe, and then select Published Data. The Published Data dialog box opens. 4. Select Name and Path of File. 5. In the File: Encoding: box, enter auto. 6. In the Read: Line Numbers: box, enter 1-END. 7. Click OK. 8. Click Finish. The Read Line object is now configured. To add an Append Line object 1. In the Opalis Integration Server Client with the Append and Copy Workflow policy open, expand the Text File Management category in the Object Palette. 2. Click and drag the Append Line object to the designing workspace, near the Read Line object. 3. Create a link between the Read Line object and the Append Line object by clicking and dragging the right arrow of the Read Line object to the Append Line object. The Append Line object is added to the workflow. To configure an Append Line object 1. Double-click the Append Line object to edit the properties. 2. In the File: File: box, enter C:\Masterlog.txt. 3. In the File: Encoding: box, enter auto. 4. Right-click the Append: Text box. Select Subscribe, and then select Published Data. Subscribe to data from the Read File object by clicking Line Text. 5. Click OK. 6. Click Finish. The Append File object is now configured to append files to the masterlog.txt file. To synchronize branches of a workflow 1. In the Opalis Integration Server Client with the Append and Copy Workflow policy open, expand the Workflow Control category in the Object Palette. 2. Click and drag the Junction object to the Designing Workspace. 3. Create a link between the Append Line object and the Junction object by clicking and 7

dragging the right arrow of the Append Line object to the Junction object. 4. Create a link between the Copy File object and the Junction object by clicking and dragging the right arrow of the Copy File object to the Junction object. 5. Double-click the Junction object to edit the properties. 6. Click the ellipses button () to select the correct branch to continue the workflow. 7. In the Select an Object dialog, select the Copy File object. 8. Click OK. 9. Click Finish. The Junction object is configured and the branches of the workflow are now synchronized. To add and configure a Delete File object 1. In the Opalis Integration Server Client with the Append and Copy Workflow policy open, expand the File Management category in the Object Palette. 2. Click and drag the Delete File object to the Designing Workspace. 3. Create a link between the Junction object and the Delete File object by clicking and dragging the right arrow of the Junction object to the Delete File object. 4. Double-click the Delete File object to edit the properties. 5. Right-click in the Deleted File: Path: box. Select Subscribe, and then select Published Data. Subscribe to data from the Copy File object by clicking Name and path of destination file. 6. Click OK. 7. Click Finish. The Append and Copy Workflow policy is now completed and can be tested in the Policy Testing Console.

How to Test the Workflow


This topic describes how to test the Append and Copy Workflow policy. To test the Opalis policy 1. In the Opalis Integration Server Client, open the Append and Copy Workflow policy. 2. Copy any text file to the C:\Drop folder. 3. Click Test. The Policy Testing Console opens. 4. Click Run, to run through the Append and Copy Workflow policy from beginning to end, without stopping. 5. Observe the Test Console Log to see that the Monitor File object detects the file, and the Copy File object copies the file to the correct destination folder. Then, the Read Line 8

object reads the contents of the file, the Append Line object appends the entire file to the contents of the masterlog.txt file, and finally, the workflow control is passed to the Delete File object. The original file is deleted. After the policy works as desired, it can be loaded it into the Action Server and run continuously.

Vous aimerez peut-être aussi