public class HTTPWorkflowFactory extends AbstractWorkflowFactory
Modifier and Type | Field and Description |
---|---|
protected boolean |
reload |
protected Map |
workflows |
properties
Constructor and Description |
---|
HTTPWorkflowFactory() |
Modifier and Type | Method and Description |
---|---|
void |
createWorkflow(String name) |
protected static String |
get(String urlValue,
Map data) |
Object |
getLayout(String workflowName) |
String |
getName() |
WorkflowDescriptor |
getWorkflow(String name,
boolean validate)
Get a workflow descriptor given a workflow name.
|
String[] |
getWorkflowNames()
Get all workflow names in the current factory
|
void |
initDone()
Invoked after the properties of the factory have been set.
|
boolean |
isModifiable(String name) |
protected static String |
post(String urlValue,
Map data) |
protected String |
readLayoutBuffer(String url,
String docId) |
protected String |
readWorkflowBuffer(String url,
String docId) |
boolean |
removeWorkflow(String name) |
void |
renameWorkflow(String oldName,
String newName) |
void |
save() |
boolean |
saveWorkflow(String name,
WorkflowDescriptor descriptor,
boolean replace)
Save the workflow.
|
void |
setLayout(String workflowName,
Object layout) |
protected String |
writeWorkflowDescriptor(String url,
String docId,
String name,
String workflowXML) |
protected String |
writeWorkflowLayout(String url,
String docId,
String name,
String layoutXML) |
protected void |
writeXML(WorkflowDescriptor descriptor,
Writer out) |
getProperties, getWorkflow, init
protected Map workflows
protected boolean reload
public boolean isModifiable(String name)
public String getName()
public WorkflowDescriptor getWorkflow(String name, boolean validate) throws FactoryException
WorkflowFactory
name
- The name of the workflow to get.FactoryException
- if the specified workflow name does not exist or cannot be located.public String[] getWorkflowNames() throws FactoryException
WorkflowFactory
FactoryException
- if the factory cannot determine the names of the workflows it has.public void createWorkflow(String name)
public void initDone() throws FactoryException
AbstractWorkflowFactory
initDone
in interface WorkflowFactory
initDone
in class AbstractWorkflowFactory
FactoryException
- if there was an error during initialization.public boolean removeWorkflow(String name) throws FactoryException
FactoryException
public void save()
public boolean saveWorkflow(String name, WorkflowDescriptor descriptor, boolean replace) throws FactoryException
WorkflowFactory
WorkflowDescriptor.validate()
method. Invalid workflows will
be saved without being checked.name
- The name of the workflow to same.descriptor
- The descriptor for the workflow.replace
- true if an existing workflow with this name should be replaced.FactoryException
- if there was an error saving the workflowInvalidWorkflowDescriptorException
- if the descriptor specified is invalidprotected static String get(String urlValue, Map data) throws IOException
IOException
protected static String post(String urlValue, Map data) throws IOException
IOException
protected String readLayoutBuffer(String url, String docId) throws Exception
Exception
protected String readWorkflowBuffer(String url, String docId) throws Exception
Exception
protected String writeWorkflowDescriptor(String url, String docId, String name, String workflowXML) throws Exception
Exception
protected String writeWorkflowLayout(String url, String docId, String name, String layoutXML) throws Exception
Exception
protected void writeXML(WorkflowDescriptor descriptor, Writer out)
Copyright © 2021 catworkx GmbH. All rights reserved.