In current kogito tooling 0.8.0 it's being permitted to use NON "RFC 3986 section 3.3" characters for setting the ProcessId. In the image below we can see that is possible to define a process with the given id "CreateClientáü"
From a "theoretical" point of view this shouldn't be a problem, or said in other words it's a matter of a definition we can take.
However, when the kogito runtimes infrastructure generates the corresponding REST endpoints, the following paths are generated.
This is at a first glance not an issue and the characters "áü" present in the @Path are permitted from the point of view of the JAX-RS spec.
However, this characters are automatically escaped to the "%" version in terms of the generated/required URL for accessing the REST endpoint
Which means that for accessing a REST endpoint like the one defined above the escaped URL format must be used, for example:
However along the road the following endpoint is constructed by the data-index.
See that "CreateClientáü" is used as part of the URL.
By doing a quick debugging I could see that the cloud event emitted by the runtime carries this information:
The issue is basically that the URL generated by the data-index doesn't work.
(Aside note here is that when we play with the SwaggerUI it's still possible to create for example a process instance such definition, ut if we use this URL e.g. in Postman it won't work, etc.)
For a matter of consistency I believe the following actions should be taken:
1) the "source" emitted by the runtime should be in the escaped form:
2) It might be worth to take a look at the data index level if any other escaping might be needed.
3) additionally Iv'e could see that the TaskId permitted characters are properly checked at the Stunner level, see screenshot bellow:
So maybe it make sense to incorporate this check at Stunner for the ProcessId too.