Skip navigation links

Oracle Content Database Web Services Java API Reference for Oracle WebCenter Suite
10g (10.1.3.2)

B32189-01


oracle.ifs.fdk
Class WorkflowManager


public interface class WorkflowManager

FDK interface for managing Workflow operations.


Method Summary
 Item getRequestForWorkflowProcess(long workflowPid, AttributeRequest[] attrs)
          Returns a Request corresponding to a given WorkflowProcess id.
 Item getWorkflowConfiguration(long id, java.lang.String operation, boolean direct, AttributeRequest[] attrs)
          Returns the WorkflowConfiguration of the specified type that is associated with the given item ID, or null if no WorkflowConfiguration of the specified type exists for the given item ID.
 Item[] getWorkflowConfigurations(long id, AttributeRequest[] attrs)
          Returns every WorkflowConfiguration that is associated directly with the given Item ID, or null if no WorkflowConfigurations exist directly on the given Item ID.
 Item[] listWorkflows(AttributeRequest[] attributes)
          Returns all Workflow instances that have been registered.
 void removeWorkflowConfiguration(long id, java.lang.String type)
          Removes the given Item ID's WorkflowConfiguration of the specified type.
 void setWorkflowConfiguration(long id, java.lang.String operation, NamedValue[] config)
          Sets a WorkflowConfiguration for an Item, replacing any existing WorkflowConfiguration of the same operation type.
 java.lang.String validateWorkflowParameterValue(long workflowId, java.lang.String paramName, java.lang.String value)
          Validates that the value for the parameter name is correct according to the validator defined for that parameter.

 

Method Detail

listWorkflows

Item[] listWorkflows(AttributeRequest[] attributes)
                     throws FdkException
Description copied from interface: WorkflowManager
Returns all Workflow instances that have been registered.
Parameters:
attributes - the requested attributes.
Returns:
an array of Workflow items.
Throws:
FdkException - if the operation fails.

setWorkflowConfiguration

void setWorkflowConfiguration(long id,
                              java.lang.String operation,
                              NamedValue[] config)
                              throws FdkException
Description copied from interface: WorkflowManager
Sets a WorkflowConfiguration for an Item, replacing any existing WorkflowConfiguration of the same operation type.
Parameters:
id - ID of the item on which to set the WorkflowConfiguration.
operation - the operation to configure (the type of WorkflowConfiguration) (see Attributes.WORKFLOW_CONFIGURATION_OPERATION and Attributes.WORKFLOW_OPERATIONS).
def - attributes of the WorkflowConfiguration.
  • notation: {Attribute name, Attribute type}
  • {Attributes.WORKFLOW_CONFIGURATION_WORKFLOW, Long}
  • {Attributes.WORKFLOW_CONFIGURATION_RESPONDERS, long[]}
  • {Attributes.WORKFLOW_CONFIGURATION_RESPONDERS_BYPASS, Boolean}
  • {Attributes.WORKFLOW_CONFIGURATION_CREATE_REQUEST, Boolean}
  • {Attributes.CONFIGURATION_FINAL, Boolean}
  • {Attributes.CONFIGURATION_ENABLED, Boolean}
  • {Attributes.WORKFLOW_CONFIGURATION_PARAMETERS, NamedValueSet[]} - where each row corresponds to a NamedValue[] with the following attributes:
    • {Attributes.WORKFLOW_PARAMETER_NAME, Boolean}
    • {Attributes.WORKFLOW_PARAMETER_DEFAULT_VALUE, String}
    • {Attributes.WORKFLOW_PARAMETER_REQUIRED, Boolean}
    • {Attributes.WORKFLOW_PARAMETER_PROMPTED, Boolean}
    • {Attributes.WORKFLOW_PARAMETER_HIDDEN, Boolean}
Throws:
FdkException - if the operation fails.

removeWorkflowConfiguration

void removeWorkflowConfiguration(long id,
                                 java.lang.String type)
                                 throws FdkException
Description copied from interface: WorkflowManager
Removes the given Item ID's WorkflowConfiguration of the specified type.
Parameters:
id - ID of the Item from which to remove the WorkflowConfiguration.
operation - the operation to configure (the type of WorkflowConfiguration) (see Attributes.WORKFLOW_CONFIGURATION_OPERATION and Attributes.WORKFLOW_OPERATIONS).
Throws:
FdkException - if the operation fails.

getWorkflowConfigurations

Item[] getWorkflowConfigurations(long id,
                                 AttributeRequest[] attrs)
                                 throws FdkException
Description copied from interface: WorkflowManager
Returns every WorkflowConfiguration that is associated directly with the given Item ID, or null if no WorkflowConfigurations exist directly on the given Item ID.
Parameters:
id - ID of the Item from which to retrieve WorkflowConfiguration instances.
attrs - the requested attributes
def - attributes of the WorkflowConfiguration. Following attributes are recognized
  • notation: {Attribute name, Attribute type}
  • {Attributes.WORKFLOW_CONFIGURATION_WORKFLOW, Long}
  • {Attributes.WORKFLOW_CONFIGURATION_RESPONDERS, long[]}
  • {Attributes.WORKFLOW_CONFIGURATION_RESPONDERS_BYPASS, Boolean}
  • {Attributes.WORKFLOW_CONFIGURATION_CREATE_REQUEST, Boolean}
  • {Attributes.CONFIGURATION_FINAL, Boolean}
  • {Attributes.CONFIGURATION_ENABLED, Boolean}
  • {Attributes.WORKFLOW_CONFIGURATION_PARAMETERS, NamedValueSet[]} - where each row corresponds to a NamedValue[] with the following attributes:
    • {Attributes.WORKFLOW_PARAMETER_NAME, Boolean}
    • {Attributes.WORKFLOW_PARAMETER_DEFAULT_VALUE, String}
    • {Attributes.WORKFLOW_PARAMETER_REQUIRED, Boolean}
    • {Attributes.WORKFLOW_PARAMETER_PROMPTED, Boolean}
    • {Attributes.WORKFLOW_PARAMETER_HIDDEN, Boolean}
    • {Attributes.WORKFLOW_PARAMETER_VALIDATOR_NAME, String}
Throws:
FdkException - if the operation fails.

getWorkflowConfiguration

Item getWorkflowConfiguration(long id,
                              java.lang.String operation,
                              boolean direct,
                              AttributeRequest[] attrs)
                              throws FdkException
Description copied from interface: WorkflowManager
Returns the WorkflowConfiguration of the specified type that is associated with the given item ID, or null if no WorkflowConfiguration of the specified type exists for the given item ID.
Parameters:
id - ID of the Item from which to retrieve the WorkflowConfiguration of the specified type.
operation - the operation to configure (the type of WorkflowConfiguration) (see Attributes.WORKFLOW_CONFIGURATION_OPERATION and Attributes.WORKFLOW_OPERATIONS).
direct - whether to only retrieve the WorkflowConfiguration of the specified type directly from the given Item ID; if false and the given Item ID does not have a direct WorkflowConfiguration of the specified type, then this method retrieves the WorkflowConfiguration from the closest parent of the Item ID that does have one.
attrs - the requested attributes (see getWorkflowConfigurations).
Throws:
FdkException - if the operation fails.

validateWorkflowParameterValue

java.lang.String validateWorkflowParameterValue(long workflowId,
                                                java.lang.String paramName,
                                                java.lang.String value)
                                                throws FdkException
Description copied from interface: WorkflowManager
Validates that the value for the parameter name is correct according to the validator defined for that parameter.
Parameters:
workflowId - ID of the Workflow on which the parameter is defined.
paramName - name of the workflow parameter.
value - value to verify.
Returns:
the normalized value (which may be simply the input value provided).
Throws:
FdkException - if the operation fails, or if the validation fails.

getRequestForWorkflowProcess

Item getRequestForWorkflowProcess(long workflowPid,
                                  AttributeRequest[] attrs)
                                  throws FdkException
Description copied from interface: WorkflowManager
Returns a Request corresponding to a given WorkflowProcess id.
Parameters:
workflowPid - ID of the workflow process.
Returns:
The Request corresponding to workflow processid.
Throws:
FdkException - if the operation fails.

Skip navigation links

Oracle Content Database Web Services Java API Reference for Oracle WebCenter Suite
10g (10.1.3.2)

B32189-01


Copyright © 2002, 2006, Oracle. All rights reserved.