-
Notifications
You must be signed in to change notification settings - Fork 198
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Feature] Workflow Migration #2325
[Feature] Workflow Migration #2325
Conversation
7e48501
to
720e902
Compare
720e902
to
1ac5851
Compare
@classmethod | ||
def migrate(cls, request): | ||
"""Migrate by process key.""" | ||
current_app.logger.debug("Migrate process started..") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Migration needs to happen only for all the other mappers with same process_key and keep the same for the one which initiates it. For e.g, if Workflow1 is used by Form1, Form2 and Form3. Then when the user saves Form2 and decides to keep the workflow for that form, then Form1 and Form3 needs new workflow (cloned)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
|
||
def upgrade(): | ||
# ### commands auto generated by Alembic - please adjust! ### | ||
op.add_column('form_process_mapper', sa.Column('is_migrated', sa.Boolean(), nullable=True, comment="Is workflow migrated", server_default='false')) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We will also need to set the value to TRUE for workflows (process) with only one form linked, right ?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
…low-ai into FWF-3718-workflow-migration
…e form linked to migration file
…low-ai into FWF-3718-workflow-migration
Quality Gate passedIssues Measures |
Issue Tracking
JIRA:
Issue Type: BUG/ FEATURE
https://aottech.atlassian.net/browse/FWF-3718
https://aottech.atlassian.net/browse/FWF-3841
Changes
Workflow Migration
mapperId
to get by process key API to support migration.If process_key is not found, if the mapper is not migrated then workflow fetched from camunda
-
http://localhost:5000/process/key/<process-key>?mapperId=1
http://localhost:5000/process/migrate
with payload { "mapperId":"mapper-id", "processKey":"process_key"}Screenshots
Migrate api
Checklist