+ private static final EELFLogger log = EELFManager.getInstance().getLogger(FlowGenerator.class);
+
+ public Transactions createSingleStepModel(Map<String, String> inParams, SvcLogicContext ctx) {
+
+ log.debug("Starting generating single Step flow");
+ log.debug("Data in context" + ctx.getAttributeKeySet());
+
+ Transactions transactions = new Transactions();
+ transactions.setTransactions(getTransactions(ctx));
+
+ log.debug("FlowGenerator.createSingleStepModel Sequence String" + transactions.toString());
+
+ return transactions;
+ }
+
+ private List<Transaction> getTransactions(SvcLogicContext ctx) {
+ Transaction singleTransaction = new Transaction();
+ singleTransaction.setTransactionId(1);
+ singleTransaction.setAction(ctx.getAttribute(REQUEST_ACTION));
+ //Need to discuss how to get action level if not in request
+ singleTransaction.setPayload(ctx.getAttribute(PAYLOAD));
+ singleTransaction.setActionLevel(ctx.getAttribute(ACTION_LEVEL));
+
+ singleTransaction.setResponses(getResponses());
+
+ List<Transaction> transactionList = new ArrayList<>();
+ transactionList.add(singleTransaction);
+
+ return transactionList;
+ }
+
+ private List<Response> getResponses() {
+
+ ResponseAction ra = new ResponseAction();
+ ra.setStop(true);
+
+ Response response = new Response();
+ response.setResponseAction(ra);
+
+ List<Response> responseList = new ArrayList<>();
+ responseList.add(response);
+
+ return responseList;
+ }