Skip to content

Commit

Permalink
chore: fix formatting and typo
Browse files Browse the repository at this point in the history
  • Loading branch information
bekiroguz committed Jan 7, 2025
1 parent 8b21874 commit 19f185f
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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.
*/
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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
)
}

/**
Expand Down

0 comments on commit 19f185f

Please sign in to comment.