in the image is the code im using to retrieve task id, it works fine without any error, im running the server on localhost.
<script cam-script type="text/form-script">
let url = $scope.url = ""
camForm.on('form-loaded', function() {
camForm.variableManager.fetchVariable("urlSolicitacoes");
});
from embeded form: 4411cfc6-24b2-11ed-acfb-00d76d75623d
from cockpit: 4411cfc5-24b2-11ed-acfb-00d76d75623d
camForm.on('variables-fetched', function() {
$scope.url = camForm.variableManager.variableValue("urlSolicitacoes")
let taskService = camForm.client.resource('task');
taskService.get(camForm.taskId, function(err, task) {
let processInstanceId = String(task.processInstanceId);
let taskId = String(task.id);
$scope.url += "&processInstanceId="+processInstanceId
$scope.url += "&taskId="+taskId
console.log("id da task: ",taskId, task)
});
})
camForm.on('submit', function(evt) {
evt.submitPrevented = true;
})
</script>
Showing on console the value of task and task id:
task id from embeded form: 4411cfc6-24b2-11ed-acfb-00d76d75623d
retrieving task id from cockpit
task id from cockpit: 4411cfc5-24b2-11ed-acfb-00d76d75623d
comparing id from cockpit with id from embeded form:
from embeded form: 4411cfc6-24b2-11ed-acfb-00d76d75623d
from cockpit: 4411cfc5-24b2-11ed-acfb-00d76d75623d
all task ids are getting this behaviour, differing by one in the last digit of the first section of the id.
i assure this code was runing ok until hours ago and the start to have this behavior from nothing.
Every task i create is getting this behaviour
can anyone help?