diff --git a/core/akka-runtime/src/main/scala/com/ing/baker/runtime/akka/actor/process_instance/ProcessInstanceProtocol.scala b/core/akka-runtime/src/main/scala/com/ing/baker/runtime/akka/actor/process_instance/ProcessInstanceProtocol.scala index 311e73722..c5d2444bf 100644 --- a/core/akka-runtime/src/main/scala/com/ing/baker/runtime/akka/actor/process_instance/ProcessInstanceProtocol.scala +++ b/core/akka-runtime/src/main/scala/com/ing/baker/runtime/akka/actor/process_instance/ProcessInstanceProtocol.scala @@ -83,7 +83,7 @@ object ProcessInstanceProtocol { sealed trait Response extends BakerSerializable /** - * A response send in case any other command then 'Initialize' is sent to the actor in unitialized state. + * A response send in case any other command then 'Initialize' is sent to the actor in initialized state. * * @param recipeInstanceId The identifier of the uninitialized actor. */ diff --git a/core/akka-runtime/src/main/scala/com/ing/baker/runtime/akka/actor/process_instance/internal/Instance.scala b/core/akka-runtime/src/main/scala/com/ing/baker/runtime/akka/actor/process_instance/internal/Instance.scala index 55be53fe8..195c8275e 100644 --- a/core/akka-runtime/src/main/scala/com/ing/baker/runtime/akka/actor/process_instance/internal/Instance.scala +++ b/core/akka-runtime/src/main/scala/com/ing/baker/runtime/akka/actor/process_instance/internal/Instance.scala @@ -6,7 +6,16 @@ import com.ing.baker.petrinet.api._ import scala.util.Random object Instance { - def uninitialized[S](process: PetriNet): Instance[S] = Instance[S](process, 0, Marking.empty, Map.empty, null.asInstanceOf[S], Map.empty, Set.empty) + def uninitialized[S](process: PetriNet): Instance[S] = + Instance[S]( + petriNet = process, + sequenceNr = 0, + marking = Marking.empty, + delayedTransitionIds = Map.empty, + state = null.asInstanceOf[S], + jobs = Map.empty, + receivedCorrelationIds = Set.empty + ) } /**