airavata-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Amila Jayasekara <thejaka.am...@gmail.com>
Subject Re: Passing WorkflowContextHeaderBuilder to API
Date Wed, 13 Mar 2013 21:14:19 GMT
Thanks Raminder.

Regards,
Amila

On Wed, Mar 13, 2013 at 5:13 PM, Raminder Singh
<raminderjsingh@gmail.com> wrote:
> Hi Amila,
>
> You need to create a ExerimentAdvancedOptions object and then you can pass it to runExperiment.
I hope following code can help.
>
> ExperimentAdvanceOptions options = airavataAPI.getExecutionManager().createExperimentAdvanceOptions(
>                                 workflowName, username, null);
>
> options.getCustomWorkflowOutputDataSettings().addNewOutputDataSettings(setOutputNodeName,
setOutputLocation,
>                                 registryURL, false);
> String experimentId = airavataAPI.getExecutionManager().runExperiment(workflowName, workflowInputs,
options);
>
> Thanks
> Raminder
>
>
> On Mar 13, 2013, at 4:26 PM, Amila Jayasekara wrote:
>
>> Hi All,
>>
>> How can I pass WorkflowContextHeaderBuilder to API ?
>> I do see following methods, but they are deprecated.
>>
>>
>> - public String runExperiment(String
>> workflowTemplateId,List<WorkflowInput> inputs, String user, String
>> metadata, String workflowInstanceName, WorkflowContextHeaderBuilder
>> builder)throws AiravataAPIInvocationException;
>> - public WorkflowContextHeaderBuilder createWorkflowContextHeader()
>> throws AiravataAPIInvocationException;
>>
>> Thanks
>> Amila
>

Mime
View raw message