public class Workflow extends ManagedFile
Modifier and Type | Class and Description |
---|---|
static class |
Workflow.ScheduleData
The workflow schedule data.
|
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
kWorkflowClassName
The default class name.
|
static java.lang.String |
kWorkflowFileExtension
The workflow file extension.
|
static SchemaDefinition |
kWorkflowSchema
Workflow schema.
|
kManagedFileClassName, kServerTypeAttribute
Constructor and Description |
---|
Workflow() |
Modifier and Type | Method and Description |
---|---|
void |
jsConstructor(java.lang.String theRelativePath)
Creates an object to access a workflow file.
|
TriggerConfiguration[] |
(JavaScript Function) getConfiguredTriggers()
Get selected triggers configuration.
|
java.lang.String |
(JavaScript Function) getName()
Returns the workflow name (minus its ".xmpwf" file extension).
|
boolean |
(JavaScript Function) isEnabled()
Returns true if this workflow is enabled, otherwise returns false.
|
void |
(JavaScript Function) setEnabled(boolean theEnabled)
Sets the enable workflow flag.
|
java.lang.Object |
(JavaScript Function) trigger(Parameters theParameters)
Triggers this workflow (as workflow-triggered) with specified parameters.
|
void |
(JavaScript Function) triggerAsync(Parameters theParameters)
Triggers this workflow (as workflow-triggered) with specified parameters.
|
java.lang.Object |
(JavaScript Function) triggerWithEvent(TriggerEvent theTriggerEvent)
Triggers this workflow for the specified event.
|
void |
(JavaScript Function) triggerWithEventAsync(TriggerEvent theTriggerEvent)
Triggers this workflow for the specified event.
|
Xmp |
(JavaScript Getter) xmp()
Gets XMP object.
|
(JavaScript Function) applyStampXml, (JavaScript Function) getAbsolutePath, (JavaScript Function) getBufferedReader, (JavaScript Function) getBufferedWriter, (JavaScript Function) getFileOutputStream, (JavaScript Function) getFormattedSize, (JavaScript Function) getImageURL, (JavaScript Function) lock, (JavaScript Function) normalizeXmp, (JavaScript Function) releaseXmp, (JavaScript Function) unlock, (JavaScript Function) writeXmp, (JavaScript Getter) assetId, (JavaScript Getter) colorprofile, (JavaScript Getter) colorspace, (JavaScript Getter) encodedAssetId, (JavaScript Getter) exists, (JavaScript Getter) file, (JavaScript Getter) fileNameExtension, (JavaScript Getter) format, (JavaScript Getter) getFileContents, (JavaScript Getter) getXmlFileContents, (JavaScript Getter) height, (JavaScript Getter) lastModified, (JavaScript Getter) length, (JavaScript Getter) name, (JavaScript Getter) parent, (JavaScript Getter) path, (JavaScript Getter) rawLength, (JavaScript Getter) resolution, (JavaScript Getter) width, (JavaScript Setter) xmp
associateValue, avoidObjectDetection, callMethod, callMethod, defineClass, defineClass, defineClass, defineConst, defineConstProperty, defineFunctionProperties, defineOwnProperties, defineOwnProperty, defineProperty, defineProperty, defineProperty, defineProperty, delete, delete, deleteProperty, deleteProperty, get, get, get, getAllIds, getArrayPrototype, getAssociatedValue, getAttributes, getAttributes, getAttributes, getAttributes, getClassName, getClassPrototype, getDefaultValue, getDefaultValue, getExternalArrayData, getExternalArrayLength, getFunctionPrototype, getGetterOrSetter, getIds, getObjectPrototype, getParentScope, getProperty, getProperty, getPropertyIds, getPrototype, getTopLevelScope, getTopScopeValue, getTypedProperty, getTypedProperty, getTypeOf, has, has, hasInstance, hasProperty, hasProperty, isConst, isEmpty, isExtensible, isSealed, preventExtensions, put, put, putConst, putConstProperty, putProperty, putProperty, redefineProperty, sealObject, setAttributes, setAttributes, setAttributes, setAttributes, setExternalArrayData, setGetterOrSetter, setParentScope, setPrototype, size
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
public static final java.lang.String kWorkflowClassName
public static final SchemaDefinition kWorkflowSchema
public static final java.lang.String kWorkflowFileExtension
public void jsConstructor(java.lang.String theRelativePath) throws InvalidManagedFilePathException
jsConstructor
in class ManagedFile
theRelativePath
- the relative path to the workflowInvalidManagedFilePathException
- if the file is not found or isn't a workflow.public Xmp (JavaScript Getter) xmp()
(JavaScript Getter) xmp
in interface IFileObject
(JavaScript Getter) xmp
in class ManagedFile
Xmp
public void (JavaScript Function) setEnabled(boolean theEnabled)
theEnabled
- is the workflow enabled to run?public boolean (JavaScript Function) isEnabled()
public java.lang.String (JavaScript Function) getName()
public TriggerConfiguration[] (JavaScript Function) getConfiguredTriggers()
public java.lang.Object (JavaScript Function) trigger(Parameters theParameters) throws java.lang.IllegalStateException
theParameters
- the parametersjava.lang.IllegalStateException
- if the workflow cannot be executedpublic void (JavaScript Function) triggerAsync(Parameters theParameters) throws java.lang.IllegalStateException
theParameters
- the parametersjava.lang.IllegalStateException
- if the workflow cannot be executedpublic java.lang.Object (JavaScript Function) triggerWithEvent(TriggerEvent theTriggerEvent) throws java.lang.IllegalStateException, java.lang.UnsupportedOperationException
theTriggerEvent
- the trigger eventjava.lang.IllegalStateException
- if the workflow cannot be executedjava.lang.UnsupportedOperationException
- if the workflow cannot be executed for the specified trigger eventpublic void (JavaScript Function) triggerWithEventAsync(TriggerEvent theTriggerEvent) throws java.lang.IllegalStateException, java.lang.UnsupportedOperationException
theTriggerEvent
- the trigger eventjava.lang.IllegalStateException
- if the workflow cannot be executedjava.lang.UnsupportedOperationException
- if the workflow cannot be executed for the specified trigger eventCopyright © 2017 MediaBeacon, Inc. All Rights Reserved.