Class WorkFlowOptions


  • public class WorkFlowOptions
    extends Object
    This consumed by a @see BaseAssessmentTask, updated by that task and then consumed by the UI layer for the user to choose which Workflow they wish to execute - currentVersion: The tool chain the application is currently using (it might be none - meaning tooling must be created) - upgradeOptions: Any available upgrade options for the existing tool chain - migrationOptions: Existing tooling/environments that the user can to move their workload over too (ie: moving from VMs to k8) - newOptions: New tool chains/environments that can be created for the application - continuationOptions: if a workflow has started and not been completed due to missing information from the user. Selecting one of these options allows them to continue - otherOptions: Workflows that are specific to the team (ie: adding/removing a developer from a project)
    Author:
    Luke Shannon (Github: lshannon)
    • Method Detail

      • isOptionsAvailable

        public boolean isOptionsAvailable()
      • hasInfrastructure

        public boolean hasInfrastructure()
      • hasIncompleteWorkFlow

        public boolean hasIncompleteWorkFlow()
      • setCurrentVersion

        public void setCurrentVersion​(WorkFlowOption currentVersion)
      • getContinuationOptions

        public List<WorkFlowOption> getContinuationOptions()
        Add a Continuation Options
      • setContinuationOptions

        public void setContinuationOptions​(List<WorkFlowOption> continuationOptions)
      • getOtherOptions

        public List<WorkFlowOption> getOtherOptions()
        Add an Other option to the existing other Options
        Parameters:
        otherOption - new Workflow Option to add to the other options list
        Returns:
        the updated reference
      • getUpgradeOptions

        public List<WorkFlowOption> getUpgradeOptions()
        Add an Upgrade option to the existing upgrade Options
        Parameters:
        upgradeOption - new InfrastructureOption to add to the upgrade option list
        Returns:
        the updated reference
      • setUpgradeOptions

        public void setUpgradeOptions​(List<WorkFlowOption> upgradeOptions)
      • addMigrationOption

        public List<WorkFlowOption> addMigrationOption​(WorkFlowOption migrationOption)
        Add a Migration option to the migration option list
        Parameters:
        migrationOption - new migration option to add the migration option list
        Returns:
        the updated reference
      • setMigrationOptions

        public void setMigrationOptions​(List<WorkFlowOption> migrationOptions)
      • addNewInfrastrutureOption

        public List<WorkFlowOption> addNewInfrastrutureOption​(WorkFlowOption newOption)
        Add an Infrastructure option to the new Infrastructure options list
        Parameters:
        newOption - the new option to add
        Returns:
        the updated reference