public class JSWorkflowManager extends JSBaseScriptableObject implements com.brightech.utils.Metrics
myLoggerCONST, DONTENUM, EMPTY, PERMANENT, READONLY, UNINITIALIZED_CONST| Constructor and Description |
|---|
JSWorkflowManager() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
jsFunction_isWorkflowRunning(java.lang.String theWorkflowName)
Returns true if an instance of the workflow is running, otherwise returns false.
|
void |
jsFunction_sleep(int theSeconds)
Use this method to sleep a workflow, instead of polling the clock and thrashing the CPU.
|
ManagedFile |
jsFunction_triggerAssetAdded(ManagedFile theAsset)
Sets up the mock parameter as described above and triggers the workflow
|
ManagedFile |
jsFunction_triggerAssetDownloaded(ManagedFile theAsset)
Sets up the mock parameter as described above and triggers the workflow
|
ManagedFile |
jsFunction_triggerAssetModified(ManagedFile theAsset,
org.mozilla.javascript.NativeObject theModifiedFields)
Triggers an "asset modified" event.
|
void |
jsFunction_triggerAssetRemoved(ManagedFile theAsset)
Sets up the mock parameter as described above and triggers the workflow
|
applyDescriptorToAttributeBitset, associateValue, avoidObjectDetection, buildDataDescriptor, callMethod, callMethod, checkPropertyChange, checkPropertyDefinition, defineClass, defineClass, defineClass, defineConst, defineConstProperty, defineFunctionProperties, defineOwnProperties, defineOwnProperty, defineOwnProperty, defineProperty, defineProperty, defineProperty, defineProperty, defineProperty, defineProperty, delete, delete, delete, deleteProperty, deleteProperty, ensureScriptable, ensureScriptableObject, ensureSymbolScriptable, equivalentValues, get, get, get, get, getAllIds, getArrayPrototype, getAssociatedValue, getAttributes, getAttributes, getAttributes, getAttributes, getAttributes, getClassName, getClassPrototype, getDefaultValue, getDefaultValue, getExternalArrayData, getExternalArrayLength, getFunctionPrototype, getGeneratorFunctionPrototype, getGetterOrSetter, getGetterOrSetter, getIds, getObjectPrototype, getOwnPropertyDescriptor, getParentScope, getProperty, getProperty, getProperty, getPropertyIds, getPrototype, getTopLevelScope, getTopScopeValue, getTypedProperty, getTypedProperty, getTypeOf, has, has, has, hasInstance, hasProperty, hasProperty, hasProperty, isAccessorDescriptor, isConst, isDataDescriptor, isEmpty, isExtensible, isFalse, isGenericDescriptor, isGetterOrSetter, isSealed, isTrue, preventExtensions, put, put, put, putConst, putConstProperty, putProperty, putProperty, putProperty, querySlot, redefineProperty, sameValue, sealObject, setAttributes, setAttributes, setAttributes, setAttributes, setAttributes, setCommonDescriptorProperties, setExternalArrayData, setGetterOrSetter, setParentScope, setPrototype, sizepublic ManagedFile jsFunction_triggerAssetAdded(ManagedFile theAsset)
theAsset - which asset are we "adding"public void jsFunction_triggerAssetRemoved(ManagedFile theAsset)
theAsset - which asset are we "adding"public ManagedFile jsFunction_triggerAssetDownloaded(ManagedFile theAsset)
theAsset - which asset are we "adding"public ManagedFile jsFunction_triggerAssetModified(ManagedFile theAsset, org.mozilla.javascript.NativeObject theModifiedFields)
theAsset - the asset we have modified along with the fields that were modified.public void jsFunction_sleep(int theSeconds)
throws java.lang.ThreadDeath
theSeconds - the seconds to sleepjava.lang.ThreadDeath - if this method (thread) is interrupted, or if the thread is already in an interrupted state.
(Workflows cannot catch/swallow ThreadDeath errors.)Workflow.jsFunction_triggerWithEventDelayed(com.brightech.mb.workflow.js.event.TriggerEvent, int, com.brightech.mb.workflow.js.Parameters)public boolean jsFunction_isWorkflowRunning(java.lang.String theWorkflowName)
theWorkflowName - the workflow name.Copyright © 2026 MediaBeacon, Inc. All Rights Reserved.