MotechEventTransformer

public class MotechEventTransformer

Transforms MotechEvent by settings its UUID.

Methods

transform

public MotechEvent transform(MotechEvent motechEvent)

Updates the motechEvent’s UUID with a random value if it is null, otherwise it does not change it.

Parameters:
  • motechEvent – the motechEvent to be updated
Returns:

the motechEvent after being updated

See also: java.util.UUID.randomUUID()