Permalink
Browse files

Support reading process definition id from file

  • Loading branch information...
1 parent 531ff98 commit 910e37bdb088e08a38ead5f03e16aec0303b5c52 @labisso labisso committed Oct 8, 2012
Showing with 9 additions and 1 deletion.
  1. +9 −1 ceiclient/commands.py
View
@@ -462,8 +462,16 @@ def execute(client, opts):
print "Problem reading process specification file %s: %s" % (opts.process_spec, e)
sys.exit(1)
+ if opts.definition_id:
+ definition_id = opts.definition_id
+ else:
+ definition_id = process_spec.get("process_definition_id")
+ if not definition_id:
+ print "process definition id not specified in opts or spec!"
+ sys.exit(1)
+
return client.create_process_definition(process_definition=process_spec,
- process_definition_id=opts.definition_id)
+ process_definition_id=definition_id)
class PDDescribeProcessDefinition(CeiCommand):

0 comments on commit 910e37b

Please sign in to comment.