Skip to content

Commit

Permalink
Print Response
Browse files Browse the repository at this point in the history
  • Loading branch information
Jocelyn Cabildo authored and Jocelyn Cabildo committed Jan 10, 2025
1 parent bd614c3 commit 833a399
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -27,9 +27,10 @@ def createinstance(self, messagequeue, message, token=None):
_variables["variables"][key] = {"type" : _variabletype, "value": message[key]}
variableschema = VariableMessageSchema().dump(_variables)
print("variableschema", variableschema)
print("instanceURL", self._getUrl_(None,self._geProcessDefinitionKey_(messagequeue)), data=json.dumps(variableschema))
print("instanceURL", self._getUrl_(None,self._geProcessDefinitionKey_(messagequeue)))
print('header', self._getHeaders_(token))
createresponce = requests.post(self._getUrl_(None,self._geProcessDefinitionKey_(messagequeue)), data=json.dumps(variableschema), headers = self._getHeaders_(token))
print('createresponce', createresponce)
if createresponce.ok:
_createresponce = json.loads(createresponce.content)
return _createresponce["id"]
Expand Down

0 comments on commit 833a399

Please sign in to comment.