Class CreateCorrespondenceTask
java.lang.Object
ch.tocco.nice2.optional.correspondence.impl.action.tasks.correspondence.CreateCorrespondenceTask
- All Implemented Interfaces:
OptionalTask<CommunicationTarget.ClientRepresentation,
,Entity> PersistTask<CommunicationTarget.ClientRepresentation,
Entity>
public class CreateCorrespondenceTask
extends Object
implements OptionalTask<CommunicationTarget.ClientRepresentation,Entity>
This task takes a CommunicationTarget.ClientRepresentation object and creates a Correspondence Entity
SerialCorrespondence and RecipientParameters are configured in the constructor. Each task call only takes a
CommunicationTarget.ClientRepresentation object as parameter. This is required to be able to process these
Correspondences sequentially
-
Constructor Summary
ConstructorsConstructorDescriptionCreateCorrespondenceTask
(L10N l10N, RecipientParameters recipientParameters, Entity serialCorrespondence) -
Method Summary
Modifier and TypeMethodDescriptiondoRun
(CommunicationTarget.ClientRepresentation target, CommandContext commandContext) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface ch.tocco.nice2.persist.core.api.exec.OptionalTask
run
Methods inherited from interface ch.tocco.nice2.persist.core.api.exec.PersistTask
andThenDo, compose, compose2, composeWhen, discardResult, expand, expand, getDescription, ifElse, orWhen, orWhenNot, passWhen, passWhenNot, skipErrors, unwrap
-
Constructor Details
-
CreateCorrespondenceTask
public CreateCorrespondenceTask(L10N l10N, RecipientParameters recipientParameters, Entity serialCorrespondence)
-
-
Method Details
-
doRun
public Entity doRun(CommunicationTarget.ClientRepresentation target, CommandContext commandContext) throws Exception - Specified by:
doRun
in interfaceOptionalTask<CommunicationTarget.ClientRepresentation,
Entity> - Throws:
Exception
-