Uploaded image for project: 'Kogito'
  1. Kogito
  2. KOGITO-7391

Validate references and required properties of SW definitions file during codegen

XMLWordPrintable

    • Icon: Feature Request Feature Request
    • Resolution: Won't Do
    • Icon: Major Major
    • None
    • None
    • None
    • False
    • None
    • False
    • ---
    • ---
    • 2022 Week 23-25 (from Jun 6), 2022 Week 26-28 (from Jun 27)

      Implement the following validations in Kogito. These validations will be moved to the SW Java SDK in a follow up Jira.

      Workflow

      Required properties

      • id, if "key" is not defined
      • key, if "id" is not defined
      • states
      • specVersion

      References

      • start to state

      States

      Required properties

      • name
      • type
      • transition, if "end" is not defined

      References

      • transition to state
      • compensatedBy to state

      EventState

      Required properties

      • onEvents

      SwitchState

      Required properties

      • dataCondition or eventCondition
      • defaultCondition

      SleepState

      Required properties

      • duration

      OperationState

      Required properties

      • actions

      ParallelState

      Required properties

      • branches
      • numCompleted, if "completionType" is defined

      InjectState

      Required properties

      • data

      ForEachState

      Required properties

      • inputCollection
      • actions

      CallbackState

      Required properties

      • action
      • eventRef

      References

      • eventRef to event

      DataCondition

      Required properties

      • condition
      • transition or end

      References

      • transition to state

      DefaultCondition

      Required properties

      • transition or end

      References

      • transition to state

      EventCondition

      Required properties

      • eventRef
      • transition or end

      References

      • eventRef to even
      • transition to state

      OnEvents

      Required properties

      • eventRefs

      References

      • eventRefs to event

      Branch

      Required properties

      • name
      • actions

      FunctionDefinition

      Required properties

      • name
      • operation

      References

      • authRef to auth

      EventDefinition

      Required properties

      • name
      • type
      • source, if "kind" is set to "comsumed"

      AuthDefinition

      Required properties

      • name
      • scheme
      • properties

      BasicProperties

      Required properties

      • username
      • password

      BearerPropertiesDefinition

      Required properties

      • token

      Oauth2PropertiesDefinition

      Required properties

      • grantType
      • clientId

      CorrelationDefinition

      Required properties

      • contextAttributeName

      ActionDefinition

      Required properties

      • functionRef or eventRef or subFlowRef

      EventRef

      Required properties

      • triggerEventRef
      • resultEventRef

      References

      • triggerEventRef to event
      • resultEventRef to event

      FunctionRefDefinition

      Required properties

      • refName
      • arguments, if type is graphql
      • selectionSet, if type is graphql

      References

      • refName to function

      SubFlowRefDefinition

      Required properties

      • workflowId

      ErrorDefinition

      Required properties

      • errorRef or errorRefs
      • transition or end

      References

      • transition to state

      RetryDefinition

      Required properties

      • name

      TransitionDefinition

      Required properties

      • nextState

      References

      • nextState to state

      StartDefinition

      Required properties

      • stateName
      • schedule

      References

      • stateName to state

      ScheduleDefinition

      Required properties

      • interval or cron

      Cron

      Required properties

      • expression

      WorkflowExecTimeoutDefinition

      Required properties

      • duration

      ContinueAsDefinition

      Required properties

      • workflowId

      ProduceEventDefinition

      Required properties

      • eventRef

      References

      • eventRef to event

              hbelmiro@redhat.com Helber Belmiro
              hbelmiro@redhat.com Helber Belmiro
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Created:
                Updated:
                Resolved: