context-mapper-dsl icon indicating copy to clipboard operation
context-mapper-dsl copied to clipboard

User story syntax is quite restrictive in "I want to" part

Open socadk opened this issue 1 year ago • 3 comments

I cannot write:

UserStory US1_Example {
  As an "Insurance Employee"
    I want to "doSomething" 
  so that "I am able to manage the customers data and offer them insurance contracts."
}

socadk avatar Jul 18 '23 10:07 socadk

Yes, I agree that it can be tricky sometimes without knowing the exact grammar behind the logic. I'm open to improvements here, as long as we can implement it with Xtext.

In your example, you do not separate the verb and the noun. If you just separate "do" and "Something", it compiles:

UserStory US1_Example {
  As an "Insurance Employee"
    I want to "do" "Something"
  so that "I am able to manage the customers data and offer them insurance contracts."
}

This is actually something we also need for the OOAD transformations. To generate service operations and entities, we need this separation.

stefan-ka avatar Jul 18 '23 11:07 stefan-ka

Poor example... I just want to specify a verb. "I want to work". No entity generated in this case.

socadk avatar Jul 18 '23 11:07 socadk

Fair enough 👍

stefan-ka avatar Jul 18 '23 11:07 stefan-ka