Search in sources :

Example 1 with EACData

use of org.openecard.sal.protocol.eac.EACData in project open-ecard by ecsec.

the class CVCStepAction method perform.

@Override
public StepActionResult perform(Map<String, ExecutionResults> oldResults, StepResult result) {
    if (result.isBack()) {
        // no going back to the initialization step
        return new StepActionResult(StepActionResultStatus.REPEAT);
    }
    DynamicContext ctx = DynamicContext.getInstance(TR03112Keys.INSTANCE_KEY);
    EACData eacData = (EACData) ctx.get(EACProtocol.EAC_DATA);
    CHATStep chatStep = new CHATStep(eacData);
    chatStep.setBackgroundTask(bTask);
    StepAction chatAction = new CHATStepAction(eacData, chatStep);
    chatStep.setAction(chatAction);
    return new StepActionResult(StepActionResultStatus.NEXT, chatStep);
}
Also used : StepAction(org.openecard.gui.executor.StepAction) EACData(org.openecard.sal.protocol.eac.EACData) StepActionResult(org.openecard.gui.executor.StepActionResult) DynamicContext(org.openecard.common.DynamicContext)

Aggregations

DynamicContext (org.openecard.common.DynamicContext)1 StepAction (org.openecard.gui.executor.StepAction)1 StepActionResult (org.openecard.gui.executor.StepActionResult)1 EACData (org.openecard.sal.protocol.eac.EACData)1