'Elsa Workflow - How to implement plugin to populate a ActivityInput field of ActivityInputUIHints.CheckList type

I have a dropdown and CheckList in an activity. I figured out how to populate the dropdown dynamically.

I would also to like to populate the checklist from the selected value of dropdown. But I used the chrome tool and looked at the elements, and found out the CheckList is not easy to handle. I googled around and did not find a good example.

How do I populate a checklist? Any help or hint would be greatly appreciated!

Regards and thanks Simeon



Solution 1:[1]

AFAIK you won't be able to use cssutils as the pseudo element ::marker is not supported syntax. According to https://pythonhosted.org/cssutils/README.html#overview under

Selectors

The selector syntax defined here (and not in CSS 2.1) should be parsable with cssutils (should mind though ;) )

You see supported should be (in section 7):

7.1.The ::first-line pseudo-element
7.2.The ::first-letter pseudo-element
7.4.The ::before and ::after pseudo-elements

Additionally, no pseudo elements are supported by Soup Sieve:

Soup Sieve aims to allow users to target XML/HTML elements with CSS selectors. It implements many pseudo classes, but it does not currently implement any pseudo elements and has no plans to do so.

Perhaps relevant is whether you can try using JavaScript via Selenium automation. Discussions of note are comments here:

How to select and manipulate specific <li> elements present with pseudo-elements such as ::marker, ::before using javascript. Though that discussion is about getComputedStyle which is different from your end goal.


An example page, if others want to have a play, are the bottom bullets in this page:

https://webdesign.tutsplus.com/tutorials/next-level-list-bullets-with-css-marker--cms-37212

For as long as that link remains live.


It could be there is another pattern you could use to target the desired nodes. It would help therefore, to share the link if public and freely accesible.

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1