Skip to content

Commit

Permalink
Add 'Connect' to required products calculations for Outcomes
Browse files Browse the repository at this point in the history
  • Loading branch information
jst-cyr committed Mar 18, 2024
1 parent c902a54 commit e19b075
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions src/models/OutcomeConditions.ts
Original file line number Diff line number Diff line change
Expand Up @@ -252,6 +252,17 @@ export class OutcomeConditions {
);
}

/**
* Analyzes current answers to determine if the solution has some form of external system integration
* Any use of Data Exchange Framework or Sitecore external integration module also qualifies for migration
*/
hasSystemIntegration(): boolean {
return (
this.xpFeaturesUsed.externalDataSystems ||
!this.connectorsUsed.none
);
}

/**
* Returns a list of products that can be migrated to.
* NOTE: Several product options don't have Prompts yet that can help lead to a result, so are not included.
Expand Down Expand Up @@ -290,6 +301,11 @@ export class OutcomeConditions {
products.push(TargetProduct.orderCloud);
}

//If they are using some form of integration, we direct towards migrating to Sitecore Connect
if (this.hasSystemIntegration()) {
products.push(TargetProduct.connect);
}

return products;
}
}

0 comments on commit e19b075

Please sign in to comment.