bpm/src/main/java/org/jboss/pnc/bpm/BpmTask.java
Map<String, Object> getExtendedProcessParameters() throws CoreException {
        Serializable processParameters = getProcessParameters();
        requireNonNull(processParameters);
        Map<String, Object> actualParameters = new HashMap<>();
        try {
            actualParameters.put("processParameters", MAPPER.writeValueAsString(processParameters));
        } catch (JsonProcessingException e) {
            throw new CoreException("Could not serialize process processParameters '" +
                    processParameters + "'.", e);
        }

        //global not process related parameters
        actualParameters.put("taskId", taskId);
        actualParameters.put("usersAuthToken", accessToken);

        return actualParameters;
    }
Map<String, Object> getExtendedProcessParameters() throws CoreException {
        Serializable processParameters = getProcessParameters();
        requireNonNull(processParameters);
        Map<String, Object> actualParameters = new HashMap<>();
        try {
            actualParameters.put("processParameters", MAPPER.writeValueAsString(processParameters));
        } catch (JsonProcessingException e) {
            throw new CoreException("Could not serialize process processParameters '" +
                    processParameters + "'.", e);
        }

        //global not process related parameters
        actualParameters.put("taskId", taskId);
        actualParameters.put("usersAuthToken", accessToken);

        return actualParameters;
    }
Extend process parameters from the task with additional useful information,
such as pncBaseUrl and taskId, needed for notifications.
Before use, taskId MUST be assigned.

@throws CoreException