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 .