Hi All,
I'm trying to read Workflow IDs from particular Folder (Ex.: Two folders are there Library & MyWorkflows, I want to read workflow ids from MyWorkflows). I saw below code, but this returns all the workflows from VCO.
var workflowId =
""
;
var workflows =
System
.getModule(
"com.vmware.library.workflow"
).getAllWorkflows();
for
each
(var wf in workflows) {
if
(wf.name == workflowName) {
workflowId = wf.id;
}
}
Add an input to your workflow of type workflow category (workflowCat1)
cat1Workflows = workflowCat1.workflows;
Then you can iterate them.
Add an input to your workflow of type workflow category (workflowCat1)
cat1Workflows = workflowCat1.workflows;
Then you can iterate them.
Thanks, that was helpful. Can you tell me how can i pass value for input WorkflowCategory from Java using SDKObject?
Actually, i'm trying to call workflow and pass WorkflowCategory as input to Java using SdkObject:
SdkObject obj = createSDKObject("WorkflowCategory","localhost/MyWorkflows");
but i'm unable to set.