scheduler/src/main/java/com/cognitree/kronos/scheduler/WorkflowSchedulerService.java
/**
     * overrides workflow properties from trigger properties.
     *
     * @param workflowProperties
     * @param triggerProperties
     * @return
     */
overrides workflow properties from trigger properties.
@param workflowProperties
@param triggerProperties
@return
overrides workflow properties from trigger properties . @param workflowProperties @param triggerProperties @return
private Map<String, Object> overrideWorkflowProperties(Map<String, Object> workflowProperties,
                                                           Map<String, Object> triggerProperties) {
        if (workflowProperties == null && triggerProperties == null) {
            return null;
        }
        final HashMap<String, Object> updatedProperties = new HashMap<>();
        if (workflowProperties != null) {
            updatedProperties.putAll(workflowProperties);
        }
        if (triggerProperties != null) {
            triggerProperties.forEach((key, value) -> {
                if (updatedProperties.containsKey(key)) {
                    updatedProperties.put(key, value);
                }
            });
        }
        return updatedProperties;
    }
private Map < String , Object > overrideWorkflowProperties ( Map < String , Object > workflowProperties , Map < String , Object > triggerProperties ) { if ( workflowProperties == null && triggerProperties == null ) { return null ; } final HashMap < String , Object > updatedProperties = new HashMap < > ( ) ; if ( workflowProperties != null ) { updatedProperties . putAll ( workflowProperties ) ; } if ( triggerProperties != null ) { triggerProperties . forEach ( ( key , value ) -> { if ( updatedProperties . containsKey ( key ) ) { updatedProperties . put ( key , value ) ; } } ) ; } return updatedProperties ; }
overrides workflow properties from trigger properties.
overrides workflow properties from trigger properties .