public class WorkflowInitializationParams extends Object
| Constructor and Description |
|---|
WorkflowInitializationParams(InputStream workflowBaseDataStream,
InputStream workflowOverlayStream,
String projectId)
Create the parameter object with required properties.
|
WorkflowInitializationParams(InputStream workflowBaseDataStream,
String projectId)
Create the parameter object with required properties.
|
WorkflowInitializationParams(String workflowBaseDataFileName,
String projectId)
Create the parameter object with required properties.
|
WorkflowInitializationParams(String workflowBaseDataFileName,
String workflowOverlayFileName,
String projectId)
Create the parameter object with required properties.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
getOverwriteExisting()
Get whether existing workflows under the
projectId with the same name as the provided workflow should be removed. |
String |
getProjectId() |
String |
getWorkflowBaseDataFileName() |
WorkflowJson |
getWorkflowBaseDataJson()
Builds a WorkflowJson object using the workflowBaseDataStream if set or the workflowBaseDataFileName.
|
InputStream |
getWorkflowBaseDataStream() |
String |
getWorkflowOverlayFileName() |
WorkflowJson |
getWorkflowOverlayJson()
Builds a WorkflowJson object using the workflowOverlayStream if set or the workflowOverlayFileName.
|
InputStream |
getWorkflowOverlayStream()
Get InputStream containing extensions / overrides to merge with the base
workflow.
|
void |
setOverwriteExisting(boolean overwriteExisting)
Set whether existing workflows under the
projectId with the same name as the provided workflow should be removed. |
void |
setWorkflowOverlayFileName(String workflowOverlayFileName)
Set Path to file containing extensions / overrides to merge with the base
workflow.
|
void |
setWorkflowOverlayStream(InputStream workflowOverlayStream)
Set InputStream containing extensions / overrides to merge with the base
workflow.
|
public WorkflowInitializationParams(String workflowBaseDataFileName, String projectId)
workflowBaseDataFileName - Path to file containing workflow in JSON format that should be created.projectId - ProjectId to create workflow under.public WorkflowInitializationParams(String workflowBaseDataFileName, String workflowOverlayFileName, String projectId)
workflowBaseDataFileName - Path to file containing workflow in JSON format that should be created.workflowOverlayFileName - Path to file containing extensions / overrides to merge with the base.projectId - ProjectId to create workflow under.public WorkflowInitializationParams(InputStream workflowBaseDataStream, String projectId)
workflowBaseDataStream - Input stream containing workflow in JSON format that should be created.projectId - ProjectId to create workflow under.public WorkflowInitializationParams(InputStream workflowBaseDataStream, InputStream workflowOverlayStream, String projectId)
workflowBaseDataStream - Input stream containing workflow in JSON format that should be created.workflowOverlayStream - InputStream containing extensions / overrides to merge with the base
workflowprojectId - ProjectId to create workflow under.public boolean getOverwriteExisting()
projectId with the same name as the provided workflow should be removed.public String getProjectId()
public String getWorkflowBaseDataFileName()
public WorkflowJson getWorkflowBaseDataJson() throws IOException
IOException - IOException If unable to convert Input Stream or file contents to WorkflowJson object.public InputStream getWorkflowBaseDataStream()
public String getWorkflowOverlayFileName()
public WorkflowJson getWorkflowOverlayJson() throws IOException
IOException - IOException If unable to convert Input Stream or file contents to WorkflowJson object.public InputStream getWorkflowOverlayStream()
public void setOverwriteExisting(boolean overwriteExisting)
projectId with the same name as the provided workflow should be removed.overwriteExisting - Value to set overwriteExisting to.public void setWorkflowOverlayFileName(String workflowOverlayFileName)
workflowOverlayFileName - Path to file containing extensions / overrides to merge with the base
workflowpublic void setWorkflowOverlayStream(InputStream workflowOverlayStream)
workflowOverlayStream - InputStream containing extensions / overrides to merge with the base
workflowCopyright © 2015–2017 Hewlett Packard Enterprise Development LP. All rights reserved.