All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.test.TestOutputPlugin1 Maven / Gradle / Ivy

package com.test;

import java.util.Map;

import com.codesnippets4all.jthunder.core.IPlugin;
import com.codesnippets4all.jthunder.core.execution.IStatus;
import com.codesnippets4all.jthunder.core.execution.Status;
import com.codesnippets4all.jthunder.core.execution.StatusType;
import com.codesnippets4all.jthunder.core.execution.status.AutomationStatusManager;
import com.codesnippets4all.jthunder.core.state.IContext;

public class TestOutputPlugin1 implements IPlugin{
	public IStatus process(Map configuration, IContext context,
			AutomationStatusManager statusManager) {
		
		System.out.println("Inside TestOutputPlugin1..."+configuration);
		
		String task1Status=(String)statusManager.getPhaseContext("input").getStatus("task1").getResult();
		
		System.out.println("Input Phase Task1's Result ::"+task1Status);
		
		
		task1Status=statusManager.getTaskResultOfType("input", "task1", String.class);
		
		System.out.println("Input Phase Task1's Result ::"+task1Status);
		
		
		IStatus status=new Status(StatusType.SUCCESS, "");
		
		return status;
	}
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy