[ 
https://issues.apache.org/jira/browse/AIRAVATA-635?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13501372#comment-13501372
 ] 

Lahiru Gunathilake commented on AIRAVATA-635:
---------------------------------------------

WorkflowContextHeaderBuilder workflowContextHeader = 
airavataClient.getExecutionManager().createWorkflowContextHeader();
                WorkflowSchedulingContext workflowSchedulingContext= 
WorkflowSchedulingContext.Factory.newInstance();
                
workflowContextHeader.setWorkflowSchedulingContext(workflowSchedulingContext);  
ApplicationSchedulingContext applicationSchedulingContext =     
workflowContextHeader.getWorkflowSchedulingContext().addNewApplicationSchedulingContext();
                        applicationSchedulingContext.setCpuCount(cpuCount);
                        applicationSchedulingContext.setNodeCount(nodeCount);
        applicationSchedulingContext.setServiceId("NodeId");
airavataClient.getExecutionManager().runExperiment(templateId, workflowInputs, 
AiravataClientManager.getCurrentUser(),null, 
workflowInstanceName,workflowContextHeader);
// Like this you can add multiple ApplicationContext with required NodeID.

                
> Providing sample to configure workflow context header for each node
> -------------------------------------------------------------------
>
>                 Key: AIRAVATA-635
>                 URL: https://issues.apache.org/jira/browse/AIRAVATA-635
>             Project: Airavata
>          Issue Type: Bug
>          Components: Workflow Tracking
>         Environment: mac
>            Reporter: Lahiru Gunathilake
>             Fix For: 0.7
>
>
> $subject

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

Reply via email to