-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #70 from AutomatedProcessImprovement/update_rules
Update rules
- Loading branch information
Showing
13 changed files
with
460 additions
and
180 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
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,15 @@ | ||
class GatewayConditionChoice: | ||
def __init__(self, candidates_list, rules_list): | ||
def __init__(self, candidates_list, rules_list, default_path=None): | ||
self.candidates_list = candidates_list | ||
self.rules_list = rules_list | ||
self.default_path = default_path | ||
|
||
def get_outgoing_flow(self, case_attributes): | ||
return [candidate for candidate, rule in zip(self.candidates_list, self.rules_list) | ||
if rule.is_true(case_attributes)] | ||
def set_default(self, default_path): | ||
self.default_path = default_path | ||
|
||
def get_outgoing_flow(self, attributes): | ||
return [candidate for candidate, rule in zip(self.candidates_list, self.rules_list) | ||
if rule.is_true(attributes)] | ||
|
||
def get_default_path(self): | ||
return self.default_path |
Oops, something went wrong.