diff --git a/core/akka-runtime/src/main/scala/com/ing/baker/runtime/akka/actor/process_index/ProcessIndex.scala b/core/akka-runtime/src/main/scala/com/ing/baker/runtime/akka/actor/process_index/ProcessIndex.scala index 3c4f57450..319127b53 100644 --- a/core/akka-runtime/src/main/scala/com/ing/baker/runtime/akka/actor/process_index/ProcessIndex.scala +++ b/core/akka-runtime/src/main/scala/com/ing/baker/runtime/akka/actor/process_index/ProcessIndex.scala @@ -435,7 +435,7 @@ class ProcessIndex(recipeInstanceIdleTimeout: Option[FiniteDuration], //Temporary solution for the situation that the initializeCmd is not send in the original Bake getCompiledRecipe(recipeId) match { case Some(compiledRecipe) => - val processState = RecipeInstanceState(recipeId, recipeInstanceId, Map.empty[String, Value], Map.empty[String, String], List.empty) + val processState = RecipeInstanceState(recipeId, recipeInstanceId, Map.empty[String, Value], recipeInstanceMetadata, List.empty) val initializeCmd = Initialize(compiledRecipe.initialMarking, processState) createProcessActor(recipeInstanceId, compiledRecipe) ! initializeCmd sender() ! ProcessAlreadyExists(recipeInstanceId) @@ -447,7 +447,7 @@ class ProcessIndex(recipeInstanceIdleTimeout: Option[FiniteDuration], //Temporary solution for the situation that the initializeCmd is not send in the original Bake getCompiledRecipe(recipeId) match { case Some(compiledRecipe) => - val processState = RecipeInstanceState(recipeId, recipeInstanceId, Map.empty[String, Value], Map.empty[String, String], List.empty) + val processState = RecipeInstanceState(recipeId, recipeInstanceId, Map.empty[String, Value], recipeInstanceMetadata, List.empty) val initializeCmd = Initialize(compiledRecipe.initialMarking, processState) actorRef ! initializeCmd sender() ! ProcessAlreadyExists(recipeInstanceId)