Orchardcore: In the Chinese environment , when a Signal event is added to the workflow, any activities added later cannot be dragged

Created on 11 Oct 2020  Â·  16Comments  Â·  Source: OrchardCMS/OrchardCore

When using the English environment, everything is normal, but it will not be able to drag in the Chinese environment

微信截图_20201011235043

Most helpful comment

Multi-language is a feature in Orchardcore, I think this problem should come from the code in OrchardCore

Yeah, I know I did code a lot of that culture module but did not code anything related with Workflow much. I'm pretty sure Elsa-Core has also some localization features. And probably uses also the same javascript base libraries to render it's workflow elements. Basically it is https://jsplumbtoolkit.com/.

All 16 comments

You get any javascript error reported in your browser dev console?

May be an encoding issue, but as Jasim said check whether errors has been reported in the browser console

You get any javascript error reported in your browser dev console?

No , There is no exception in the console。
wf

Press F12 and go to Console tab in Chrome dev tool.

As you can see on the right side of the screenshot above, my resource file was loaded locally, and there was no exception during the loading process. I tried it and it was normal in English.

Yeah sorry I did not see it first time because it was in chinese. All good then.
Is there a difference in the HTML elements rendered for these signal "cards" when you create one with an english title and one with a chinese title?

Yeah sorry I did not see it first time because it was in chinese. All good then.
Is there a difference in the HTML elements rendered for these signal "cards" when you create one with an english title and one with a chinese title?

There was no abnormality. I even tried to debug the JS file, but no abnormality was found. But because it is compressed, I don't know much about it, so I didn't study it in depth.

The following is a demo in different languages

wfSignal2

Ok, so there is no "Title" added to the Signal event. So, it renders a chinese title meaning "Signal" because we made these things translatable or you did?

Ok, now I get it.

image
Just like this, even if the title is added, it won’t work

Ok, thanks, I will try to repro locally. I can't say it's because of an encoding issue as these are rendered correctly. Looks more like a javascript issue to me. But there is no console error reported. Really strange.

The simplest example: I first add a signal named "s1", and then add a signal named "s2", at this time s2 or other subsequently added nodes cannot be dragged

image

Maybe it is something that @sfmskywalker fixed already in Elsa-Core?

I may try this in Arabic, this will be a first time I will use Workflows in action ;)

Maybe it is something that @sfmskywalker fixed already in Elsa-Core?

Multi-language is a feature in Orchardcore, I think this problem should come from the code in OrchardCore

Multi-language is a feature in Orchardcore, I think this problem should come from the code in OrchardCore

Globalization & Localization is cool, but sometimes let you crazy ;) till now we didn't confirm if the issue caused from OC itself, we will try to reproduce the issue first

Multi-language is a feature in Orchardcore, I think this problem should come from the code in OrchardCore

Yeah, I know I did code a lot of that culture module but did not code anything related with Workflow much. I'm pretty sure Elsa-Core has also some localization features. And probably uses also the same javascript base libraries to render it's workflow elements. Basically it is https://jsplumbtoolkit.com/.

Maybe it is something that @sfmskywalker fixed already in Elsa-Core?

I wasn't aware of this issue, so probably the Elsa designer has the same bug 😅

Was this page helpful?
0 / 5 - 0 ratings