Comparing version 0.0.16 to 0.0.17
@@ -8,8 +8,10 @@ var debug = require('debug')('workflow:common') | ||
var taskTypeCache = {}; | ||
var DEFAULT_TASK_PATH = "/src/tasks/" | ||
var taskPath | ||
var workflow = { | ||
discoverTaskType: function(taskType) { | ||
var processRelativePath = path.join(process.cwd(), "/src/tasks/", taskType + ".js"); | ||
var processRelativePath = path.join(process.cwd(), taskPath, taskType + ".js"); | ||
return fs.existsSync(processRelativePath) ? processRelativePath : "./tasks/" + taskType + ".js"; | ||
@@ -32,2 +34,3 @@ }, | ||
debug("defining: %s", workflowDefinition.task) | ||
taskPath = workflowDefinition.taskPath || DEFAULT_TASK_PATH | ||
var WorkflowType = workflow.getWorkflow(workflowDefinition.task) | ||
@@ -34,0 +37,0 @@ |
{ | ||
"name": "worksmith", | ||
"version": "0.0.16", | ||
"version": "0.0.17", | ||
"description": "A purely functional workflow engine ", | ||
@@ -29,2 +29,3 @@ "main": "index.js", | ||
"lodash": "^3.7.0", | ||
"mocha": "^2.2.5", | ||
"pg": "^4.3.0", | ||
@@ -31,0 +32,0 @@ "xregexp": "^2.0.0" |
51557
1087
7
+ Addedmocha@^2.2.5
+ Addedcommander@0.6.12.3.0(transitive)
+ Addeddebug@2.2.0(transitive)
+ Addeddiff@1.4.0(transitive)
+ Addedescape-string-regexp@1.0.2(transitive)
+ Addedglob@3.2.11(transitive)
+ Addedgrowl@1.9.2(transitive)
+ Addedinherits@2.0.4(transitive)
+ Addedjade@0.26.3(transitive)
+ Addedlru-cache@2.7.3(transitive)
+ Addedminimatch@0.3.0(transitive)
+ Addedminimist@0.0.8(transitive)
+ Addedmkdirp@0.3.00.5.1(transitive)
+ Addedmocha@2.5.3(transitive)
+ Addedms@0.7.1(transitive)
+ Addedsigmund@1.0.1(transitive)
+ Addedsupports-color@1.2.0(transitive)
+ Addedto-iso-string@0.0.2(transitive)
- Removedminimist@0.0.10(transitive)