workflow.md

February 26, 2024 ยท View on GitHub

Home > @datashaper/workflow

workflow package

Classes

ClassDescription
BaseNode
Codebook
CodebookProfile
DataPackage
DataShape
DataTable
DataTableProfile
DefaultGraph
Named
ObservableNode
Observed
ParserOptions
Resource
ResourceReference
StepNode
TableBundle
TableBundleProfile
UnknownResourceRepresents an instance of an unknown resource type. This allows us to load and display arbitrary resources that have not been explicitly registered.
UnknownResourceProfile
Workflow
WorkflowProfile

Enumerations

EnumerationDescription
NodeInput
NodeOutput

Functions

FunctionDescription
argsHasOutputColumn(args)
cloneStep(step, columnNames)
createNode(step)
fetchFile(url)
fetchJson(url)
isDataTypeSupported(verb, type)Indicates whether the specified data type is supported by the step.
isInputColumnListStep(verb)Indicates whether the supplied step requires multiple input columns.
isInputColumnRecordStep(verb)Indicates whether the supplied step requires a map of input columns.
isInputColumnStep(verb)Indicates whether the supplied step requires a single input column.
isInputKeyValueStep(verb)Indicates whether the supplied step requires an input key and value column.
isInputTableListStep(verb)Indicates whether this step requires more than one input table.
isNoArgsStep(verb)Indicates whether this step accepts arguments
isNumericInputStep(verb)
isOutputColumnStep(verb)Indicates whether the supplied step requires a single output column.
isReferenceSchema(entry)
join(id)
lookup(id)
nextColumnName(name, columnNames)Suggests a new column name given the list passed. If the name is used, this will append numbers to the end. e.g. "column" may result in "column 1" or "column 2" if there are collisions
observableNode(id, source)
readStep({ verb, args, id, input }, previous)Factory function to create new verb configs with as many reasonable defaults as possible.
stepNodeFactory(stepFunction)
verbs(filter)Returns all verbs, subject to optional filter.
workflow(id)

Interfaces

InterfaceDescription
ConfigurableImplement this to signal that your resource is configurable. Implementors must supply their own management of the config object/observable. See the webapp's TestAppResource for an example.
EmitterA data emitter for a type of output
Graph
Node_2A graph processing node
NodeBindingA binding for a value being emitted from a node
NodeStatsAn interface for node statistics.
ProfileHandlerA custom profile handler
ProfileInitializationContext
ResourceConstructorA constructor for a resource
StepResolved step data, used in living workflows
StepApiThe API available to step functions.
StepInputStep input data for parsing workflow schemas
TableExportOptionsOptions for exporting data-tables within Workflow instances.w
Transformer_2A transformer for a type of I/O

Variables

VariableDescription
aggregate
bin
binarize
boolean
concat
convert
copy
decode
dedupe
dereference
derive
destructure
difference
drop
encode
erase
fill
filter
fold
groupby
impute
intersect
isCodebook
isCodebookSchema
isDataTable
isDataTableSchema
isDefaultInput
isDefaultOutput
isReference
isTableBundle
isTableBundleSchema
isTableEmitter
isTableTransformer
isWorkflow
isWorkflowSchema
merge
onehot
orderby
pivot
print_2
recode
rename
rollup
sample
select
spread
strings
unfold
ungroup
unhot
union
unorder
unroll
window_2

Type Aliases

Type AliasDescription
CopyWithPartial
HandlerFunction callback for general activity listener.
HandlerOf
Maybe
NodeId
Readable
SocketName
StepFunction
TableEmitterAn emitter for TableContainers
TableObservableThe workflow object manages mutable data for a workflow specification
TableTransformer
Unsubscribe
VariadicNodeBinding