Re: Workflow in Operation Orchestration (182 Views)
Reply
Frequent Advisor
sac3212988
Posts: 65
Registered: ‎07-03-2011
Message 1 of 2 (196 Views)

Workflow in Operation Orchestration

I want to create a work flow in OO, Scenario is mentioned below:

 

I have one txt file, previous.txt.Now I want to execute one SQL query which will save the result in new.txt file.
Now I want to compare both previous.txt and new.txt file( both files contains some servers).
one by one server from new.txt will be compared with previous.txt. If a server which is there in new.txt also exists in
previous.txt, a new workflow will be called , and if it is not there then it not do anything.

Please let me know if a workflow can be created for this.If yes, then how it can be done and how SQL query can be excuted on a different server and how it will read a txt file.

Trusted Contributor
Steve_Drummond
Posts: 89
Registered: ‎10-01-2012
Message 2 of 2 (182 Views)

Re: Workflow in Operation Orchestration

Yes, this is actually quite an easy flow to create.

 

You will use the /FileSystem/Windows Only/Read from File, /Databases/SQL/SQL Query and /Utility Operations/Looping/List Iterator operations mostly.

 

Use two list iterators, one for the previous servers, one for the new servers; check the new server entry against all entries in the previous list. If an entry matches then launch a subflow or new flow, depending on what you wanted to do. After that, or if no entry is matched, return to the top level list iterator and repeat.

 

Hope that helps.

The opinions expressed above are the personal opinions of the authors, not of HP. By using this site, you accept the Terms of Use and Rules of Participation.