Service Virtualization

 View Only
  • 1.  How to handle the different flows in One Solution

    Posted Oct 10, 2022 02:17 AM
    Actually we have Multiple flows with same incoming Request
    suppose for the  incoming request satisfy the condition-1  then we have to route to flow-1  in the same  way if Condition-2  then it will redirect to flow-2 and if condition-1, condition-2, condition-3, condition-4 then redirect it to flow-3 and in the same way and if the condition-1, condition-2, condition-5 then it redirect to flow-4.
    In this way we have to make it all the flows in one solution each flow has a multiple steps.
    is there is a  possible way to handle by code if conditions satisfied of a flow and redirect to Respective flow step.




  • 2.  RE: How to handle the different flows in One Solution

    Broadcom Employee
    Posted Oct 10, 2022 02:58 PM
    Hi Sravankumar,
    You can modify your VSM to add specific flows based on your conditions.
    For example:
    1. If you are looking for a value 123 for a specific request data argument then you can assert on the argument value and change the workflow to the different step(s) and build your logic then goto VSI step.
    2. If you are looking for a value 234 for a specific request data argument then you can assert on the argument value and change the workflow to the different step(s) and build your logic and then goto VSI step.

    If you can share your VS mar file and the request with different data then we can look at it further.

    Regards,
    Prema


  • 3.  RE: How to handle the different flows in One Solution

    Posted Oct 19, 2022 01:03 AM
    Hi Sravan,

    There are different ways to handle this requirement. It could be based on assertions (OOB or Scripted), subprocesses, or the use of a combination of data protocols.

    Based on the exact requirement you can pick and choose the optimal approach.

    Thanks

    ------------------------------
    Regards,
    Vaibhav Jain
    Capgemini
    ------------------------------



  • 4.  RE: How to handle the different flows in One Solution

    Posted Nov 26, 2022 02:13 PM
    This is how we diod this .
    - Create Subprocess for each flow .
    - Decide which subprocess to call using assertion on the master step in VSM 
    - For dynamic response use response lookup step /parse text as response 
    -For complex assertions on deciding the flow ,Use script step/Assertion 

    Our scenarios was as below:
    It was an ordering system for which we had around 4 type of orders New/Modify/Lookup/Completed
    We identified the type of order through incoming SOAP request operation and route accordsingly to required subprocess as simple as that 


    ------------------------------
    Regards
    Rahul V
    Telus International
    ------------------------------