Interface WorkflowClock


public interface WorkflowClock
Provides time-related functionality for the yWorkflow engine. WorkflowClock allows for customizable time handling, which is particularly useful for testing scenarios where you need to control time progression or for applications that need to work with specific time zones or clock sources.
Since:
1.0
  • Method Summary

    Modifier and Type
    Method
    Description
    default Instant
    now()
    Returns the current instant according to this clock.
  • Method Details

    • now

      default Instant now()
      Returns the current instant according to this clock. The default implementation returns the current system time.
      Returns:
      the current instant