-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update BPMN models and tasks implementation
- Loading branch information
1 parent
735145f
commit edd43bc
Showing
8 changed files
with
140 additions
and
271 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
from flowable.external_worker_client import ExternalWorkerClient | ||
from worker.common.config import Config | ||
from requests.auth import HTTPBasicAuth | ||
|
||
|
||
def customize_session(session): | ||
if Config.FLOWABLE_USE_TLS and session is not None: | ||
session.verify = Config.FLOWABLE_HOST_CACERT | ||
return session | ||
else: | ||
return None | ||
|
||
|
||
flowableClient = ExternalWorkerClient( | ||
flowable_host=Config.FLOWABLE_HOST, | ||
auth=HTTPBasicAuth( | ||
Config.FLOWABLE_REST_USER, | ||
Config.FLOWABLE_REST_PASSWORD, | ||
), | ||
customize_session=customize_session, | ||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.