Hello,
During my workflow, I would like to add a "waiting event". This workflow needs to resume when a file is created in a directory on the VCO server. I have scripted this small portion :
var strFilePath = "Import/test.txt";
var file = new File(strFilePath);
System.log(file.exists);
I'm new on VCO and don't know how to create a trigger for this. Could I use Orchestrator Policies to do so... ? In the Developer's Guide, it's explained to create a Trigger Object and to script the trigger in a Scriptible Task. After that, I don't know how to create my trigger with this specific request...
Any help would be very usefull...
Thank you.
Regards,
Fred
Triggers are specific objects provided by the plug-ins. Technicaly there is a thread checking on on the state of something notifying vCO when the work is done.
For example there are triggers for VCenter VM states, vCloud Tasks, VIX run command etc.
A policy allows to run a workflow and pass a parameter attached to this trigger to run a particular operation.
The code you have here is synchronous. It returns when done. You do not a trigger for it and no trigger exists for it.
Christophe.
Thank you for your answer Christophe... I'm using WebServices instead and it's working fine.
Regards,
Fred