Workflow Engine v0.1.0 WE.Document View Source
This module represents a piece of required or optional data that can be attached to a workflow step or a workflow in general.
Link to this section Summary
Functions
Retrieve the data.
Create a document. By default a document is required.
Retrieve the name.
Create an optional document.
Retrieve the document_type.
Link to this section Types
possible values: :complete | :incomplete
possible values: :required | :optional
Link to this section Functions
Retrieve the data.
Link to this function
document(name)
View Source (since 0.1.0)document(String.t()) :: WE.Document.t()
Create a document. By default a document is required.
The same document name can only be used once per workflow.
Link to this function
find(documents, name)
View Sourcefind([WE.Document.t()], String.t()) :: WE.Document.t()
Link to this function
from_reference(ref)
View Sourcefrom_reference(WE.DocumentReference.t()) :: WE.Document.t()
Link to this function
has_name?(doc, document_name)
View Sourcehas_name?(WE.Document.t(), String.t()) :: boolean()
Retrieve the name.
Link to this function
optional_document(name)
View Source (since 0.1.0)optional_document(String.t()) :: WE.Document.t()
Create an optional document.
Link to this function
same_name?(doc1, doc2)
View Sourcesame_name?(WE.Document.t(), WE.Document.t()) :: boolean()
Link to this function
set_document_complete(doc)
View Sourceset_document_complete(WE.Document.t()) :: WE.Document.t()
Link to this function
set_document_is_incomplete(doc)
View Sourceset_document_is_incomplete(WE.Document.t()) :: WE.Document.t()
Retrieve the document_type.
Link to this function
update_data(document, data)
View Sourceupdate_data(WE.Document.t(), term()) :: WE.Document.t()