Add support for workflow instance JSON context.
Add support for two step workflow transition.
Add support for dynamic form creation for transition execution.
Signed-off-by: Roberto Rosario <roberto.rosario@mayan-edms.com>
Display event type namespaces in the transition trigger view.
Sort events type list in the transition trigger view.
Signed-off-by: Roberto Rosario <roberto.rosario.gonzalez@gmail.com>
Instead of inserting the path of the apps into the Python app,
the apps are now referenced by their full import path.
This solves name clashes with external or native Python libraries.
Example: Mayan statistics app vs. Python new statistics library.
Every app reference is now prepended with 'mayan.apps'.
Existing config.yml files need to be updated manually.
Signed-off-by: Roberto Rosario <roberto.rosario.gonzalez@gmail.com>
Perform action class validation by importing the class and
not relying on an instance of action model, which might not
exisit when still creating the action.
Signed-off-by: Roberto Rosario <roberto.rosario.gonzalez@gmail.com>
Pass the view request to the form so that it can be passed to the
WorkflowAction clean method.
Signed-off-by: Roberto Rosario <roberto.rosario.gonzalez@gmail.com>
Add a new workflow field called internal_name for easier workflow
reference in document index templates.
Generalize the PropertyHelper class.
Signed-off-by: Roberto Rosario <roberto.rosario.gonzalez@gmail.com>