class ExecutionAgendaConfigurator {

    public void setEnvVars(Agenda agenda, AgendaProgress agendaProgress)
    {
        agendaId = agenda.getId();
        String payload = jsonHelper.getJSONString(agenda);
        String progressPayload = agendaProgress == null
            ? null
            : jsonHelper.getJSONString(agendaProgress);
        logger.debug("Launching Executor with Payload: {}", payload);

        payloadWriter.writePayload(payload);

        if(progressPayload != null)
            setEnvVar(HandlerField.LAST_PROGRESS.name(), progressPayload);
        setEnvVar(HandlerField.CID.name(), agenda.getCid());
        setEnvVar(HandlerField.AGENDA_ID.name(), agenda.getId());
        setEnvVar(HandlerField.CUSTOMER_ID.name(), agenda.getCustomerId());
        setEnvVar(HandlerField.PROGRESS_ID.name(), agenda.getProgressId());
    }

    public  ExecutionAgendaConfigurator(ExecutionConfig executionConfig, JsonHelper jsonHelper, PayloadWriter payloadWriter);

}