Skip to content
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

"Workflow Set Status (other workflow)" Action - "Process Target Workflow" option not working as expected #5220

Closed
stanalyst opened this issue Nov 14, 2022 · 0 comments
Labels
Fixed in v16.4 Status: Confirmed It's clear what the subject of the issue is about, and what the resolution should be. Type: Bug Confirmed bugs or reports that are very likely to be bugs.

Comments

@stanalyst
Copy link

stanalyst commented Nov 14, 2022

Description

The workflow action "Workflow Set Status (other workflow)" is not working as expected ... specifically the "Process Target Workflow" option for this action.

Based on the description of the "Process Target Workflow" option - setting this to "Yes" should cause the target workflow to continue processing immediately - and not wait for the scheduled workflow job. However - this is not the case - setting this to "Yes" is not forcing the target workflow to process.

WFSetStatus-OtherWF-ProcessTargetWF

Steps to Reproduce

  1. Setup 2 workflows: Primary & Secondary.
    Primary workflow will be used to Activate an Activity "WrapUp" in an existing instance of the Secondary workflow - and then set the status of the Secondary workflow with the option to Process Target set to Yes.
    Secondary workflow has 3 activities:
  • start - which basically activates the 3rd activty
  • WrapUp - which will do some final processing and complete workflow
  • Present form - which is basically being used to keep the workflow active for our testing
  1. start an instance of the secondary workflow - and copy its Guid
  2. update the primary workflow and save the Guid into an attribute from prior step
  3. run the primary workflow - to do the actions described above
  4. confirm status/state of the secondary workflow as well as active activities

BTW - I setup a mockup of this on the demo site (under SetStatus Issue folder in workflows if you hurry) ... but I've attached exports of the 2 workflows I used if you need to reload them.
WorkflowSetStatusIssue.zip

Expected behavior:

When the primary workflow completes - the secondary workflow should immediately process its WrapUp activity.

Actual behavior:

The secondary workflow is still active - and no processing has occurred. But if you wait for the scheduled workflow job (or manually trigger it) ... the secondary workflow will process.

Versions

  • Rock Version: 13.7
@sparkdevnetwork-service sparkdevnetwork-service added the Type: Bug Confirmed bugs or reports that are very likely to be bugs. label Apr 27, 2023
@sparkdevnetwork-service sparkdevnetwork-service added the Status: Confirmed It's clear what the subject of the issue is about, and what the resolution should be. label Jan 29, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Fixed in v16.4 Status: Confirmed It's clear what the subject of the issue is about, and what the resolution should be. Type: Bug Confirmed bugs or reports that are very likely to be bugs.
Projects
None yet
Development

No branches or pull requests

3 participants