JWT hangs up

Issue #292 resolved
Andrey Kiyanovsky created an issue

Hi Fidel,

I managed and hang up JWT again.

JWT hangs up on load/edit "Done" transition (full XML and function that brakes JWT attached).

JWT 2.2.10_beta3

Will appreciate quick fix, Thank you in advance, AK.

Comments (17)

  1. Andrey Kiyanovsky reporter

    Usual view:

    a[%{00061} = %{00120} and %{00062} = %{00121}] {00059} !=0 ? (%{00042} != last(toStringList(projectProperty("FlowPhSt_" + %{53000} + "" + %{00062}),",")) ? last(toStringList(projectProperty("FlowPhSt" + %{53000} + "" + %{00062}),",")) : "") : ({00060} != 0 ? (%{00049} ~ "ReopenParentTask" ? (%{00042} != first(toStringList(projectProperty("FlowPhSt" + %{53000} + "" + first(toStringList(projectProperty("FlowEnvPh" + %{53000} + "" + first(toStringList(projectProperty("FlowEnv" + %{53000}),","))),","))),",")) ? first(toStringList(projectProperty("FlowPhSt_" + %{53000} + "" + first(toStringList(projectProperty("FlowEnvPh" + %{53000} + "" + first(toStringList(projectProperty("FlowEnv" + %{53000}),","))),","))),",")) : "") : (%{00042} != first(availableItems(%{52901},%{00062})) ? first(availableItems(%{52901},%{00062})) : "")) : (%{00062} = last(availableItems(%{52902}, %{00061})) ? "Release" : (first(availableItems(%{52901}, nthElement(availableItems(%{52902}, %{00061}), indexOf(%{00062}, availableItems(%{52902}, %{00061}))+1))))))

  2. Andrey Kiyanovsky reporter

    It happened after adding this code:

    first(toStringList(projectProperty("FlowPhSt_" + %{53000} + "" + first(toStringList(projectProperty("FlowEnvPh" + %{53000} + "" + first(toStringList(projectProperty("FlowEnv" + %{53000}),","))),","))),","))

  3. Andrey Kiyanovsky reporter

    Fidel, an underscore is not displayed in bitbucket here, so it'd be better to see original code.

  4. Andrey Kiyanovsky reporter

    Fidel,

    I've redesigned the post-function and now it works. So there is no urgency anymore, please take you time.

    Best, AK.

  5. Fidel Castro Armario repo owner

    Andrey,

    Sorry for the delay in my response, I was going to propose you a redesign of the expression, but you were faster :). This problem will take quite a time to be fixed, since I have found that some parts of the parser need deep refactorization.

    This issue has the maximum priority and I'm working on it. The refactorization will also improve the performance of the parser, which is another of your demands.

    Regards,

    Fidel

  6. Andrey Kiyanovsky reporter

    Thank you, Fidel! I've attached the second example of function that hangs up JWT. So I need to redesign it again (

  7. Fidel Castro Armario repo owner

    A clue: try setting ephemeral fields previously with values of parts of the big expression, and replace those parts of the big expression with ephemeral fields, in order to simplify the big expression.

  8. Andrey Kiyanovsky reporter

    Fidel, I've redesigned my workflow and now it works with 2.2.10_beta7 correctly and very fast. I believe that complex expression will work also.

    Thank you very much!

  9. Log in to comment