Skip to content

Commit

Permalink
Feature/internship (#3)
Browse files Browse the repository at this point in the history
* Fixing sequence flow with conditions

* Adding support for Service Task and Send Task

* Updating README.md

* Update to Service and Send Task

* Adding CORS support for server

* Update Service Task for new keyword

* Adding functionalities for User Task

* Rewritten run_database_service

* Update requirements.txt

* Instance persistence solved

* Adding dummy db

* README update

* Adding dummy db

* Small convenience update

* Basic Call Activity implemented

* Update README

* Connector & Input/Output tab + Refactoring

* Basic DMN parser & execution

* Refactoring

* Formatting with Black

* Promjene u skladu s praksom

Co-authored-by: ssimic1144 <simic.sd63@gmail.com>
  • Loading branch information
ntankovic and ssimic1144 authored Sep 16, 2021
1 parent 97fc427 commit f0cff2b
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions bpmn_types.py
Original file line number Diff line number Diff line change
Expand Up @@ -226,12 +226,15 @@ def run_connector(self, variables, instance_id):
response = requests.patch(
self.properties_fields["db_location"], params=parameters, json=data
)

if response.status_code not in (200, 201):
raise Exception(response.text)
# Check for output variables
if self.output_variables:
r = response.json()
for key in self.output_variables:
for r in response.json():
if key in r:
variables[key] = r[key]
if key in r:
variables[key] = r[key]

def run(self, variables, instance_id):
if self.connector_fields["connector_id"] == "http-connector":
Expand Down

0 comments on commit f0cff2b

Please sign in to comment.