{"replacementParameters":{"baseSystemUrl":"Base system url. Ex: redhat.orangehrm.com","baseSystemAdminUserName":"User Name of the admin user in the base system","baseSystemAdminUserPassword":"Password of the admin user in the base system","secondarySystemUrl":"Secondary system url. Ex: payroll.orangehrm.com","secondarySystemAdminUserName":"User Name of the admin user in the secondary system","secondarySystemAdminUserPassword":"Password of the admin user in the secondary system"},"subscribedEvents":["employee_added"],"processCoordinator":"BasicIntegrationProcessCoordinator","dataFlow":[{"name":"KeyMapMediator","properties":{"dataFields":[{"existingFieldName":"new-job-record","alterFieldName":"employee","fieldPath":["data"],"warnAndProceed":true},{"existingFieldName":"employee_number","alterFieldName":"empNumber","fieldPath":["data","employee"],"warnAndProceed":true}]}},{"name":"APIDataFetchMediator","properties":{"oauthConfig":true,"oauthConfigData":{"grantType":"password","client_id":"public_rest_api_client","client_secret":"","scope":"","url":"https://##baseSystemUrl##/index.php/oauth/issueToken","redirect_uri":"","state":"","username":"##baseSystemAdminUserName##","password":"##baseSystemAdminUserPassword##","refresh_token":""},"method":"get","parameters":[{"parameterName":"employeeNumber","fieldName":"empNumber","fieldPath":["data","employee"]}],"parametersDataPath":[],"expectedResponseCode":"200","additionalHeaders":[{"Content-Type":"application/json"}],"dataURl":"https://##baseSystemUrl##/index.php/api/employees/[employeeNumber]?include=JobRecord","aggregatedFieldName":"employeeAPIData","dataConvertConfig":{"from":"json","to":"phpArray"},"aggregatedDataSet":"message"}},{"name":"DataExtractAndAggregateMediator","properties":{"extractions":[{"arrayListPath":[],"extract":{"fieldPath":["employeeAPIData","data"],"fieldName":"firstName"},"source":{"fieldName":"","fieldPath":[],"value":""},"search":{"fieldPath":[],"fieldName":""},"insert":{"fieldName":"firstName","fieldPath":["employee"]}},{"arrayListPath":[],"extract":{"fieldPath":["employeeAPIData","data"],"fieldName":"lastName"},"source":{"fieldName":"","fieldPath":[],"value":""},"search":{"fieldPath":[],"fieldName":""},"insert":{"fieldName":"lastName","fieldPath":["employee"]}},{"arrayListPath":[],"extract":{"fieldPath":["employeeAPIData","data"],"fieldName":"employeeId"},"source":{"fieldName":"","fieldPath":[],"value":""},"search":{"fieldPath":[],"fieldName":""},"insert":{"fieldName":"employeeId","fieldPath":["employee"]}},{"arrayListPath":[],"extract":{"fieldPath":["employeeAPIData","data"],"fieldName":"locationId"},"source":{"fieldName":"","fieldPath":[],"value":""},"search":{"fieldPath":[],"fieldName":""},"insert":{"fieldName":"locationId","fieldPath":["employee"]}}]}},{"name":"DataExtractAndAggregateMediator","properties":{"extractions":[{"arrayListPath":[],"extract":{"fieldPath":["employeeAPIData","data","JobRecord"],"fieldName":"joined_date"},"source":{"fieldName":"","fieldPath":[],"value":""},"search":{"fieldPath":[],"fieldName":""},"insert":{"fieldName":"joined_date","fieldPath":["jobRecord"]}},{"arrayListPath":[],"extract":{"fieldPath":["employeeAPIData","data","JobRecord"],"fieldName":"probation_end_date"},"source":{"fieldName":"","fieldPath":[],"value":""},"search":{"fieldPath":[],"fieldName":""},"insert":{"fieldName":"probation_end_date","fieldPath":["jobRecord"]}},{"arrayListPath":[],"extract":{"fieldPath":["employeeAPIData","data","JobRecord"],"fieldName":"date_of_permanency"},"source":{"fieldName":"","fieldPath":[],"value":""},"search":{"fieldPath":[],"fieldName":""},"insert":{"fieldName":"date_of_permanency","fieldPath":["jobRecord"]}},{"arrayListPath":[],"extract":{"fieldPath":["employeeAPIData","data","JobRecord"],"fieldName":"job_title_id"},"source":{"fieldName":"","fieldPath":[],"value":""},"search":{"fieldPath":[],"fieldName":""},"insert":{"fieldName":"job_title_id","fieldPath":["jobRecord"]}},{"arrayListPath":[],"extract":{"fieldPath":["employeeAPIData","data","JobRecord"],"fieldName":"employment_status_id"},"source":{"fieldName":"","fieldPath":[],"value":""},"search":{"fieldPath":[],"fieldName":""},"insert":{"fieldName":"employment_status_id","fieldPath":["jobRecord"]}},{"arrayListPath":[],"extract":{"fieldPath":["employeeAPIData","data","JobRecord"],"fieldName":"job_category_id"},"source":{"fieldName":"","fieldPath":[],"value":""},"search":{"fieldPath":[],"fieldName":""},"insert":{"fieldName":"job_category_id","fieldPath":["jobRecord"]}},{"arrayListPath":[],"extract":{"fieldPath":["employeeAPIData","data","JobRecord"],"fieldName":"subunit_id"},"source":{"fieldName":"","fieldPath":[],"value":""},"search":{"fieldPath":[],"fieldName":""},"insert":{"fieldName":"subunit_id","fieldPath":["jobRecord"]}},{"arrayListPath":[],"extract":{"fieldPath":["employeeAPIData","data","JobRecord"],"fieldName":"location_id"},"source":{"fieldName":"","fieldPath":[],"value":""},"search":{"fieldPath":[],"fieldName":""},"insert":{"fieldName":"location_id","fieldPath":["jobRecord"]}},{"arrayListPath":[],"extract":{"fieldPath":["employeeAPIData","data","JobRecord"],"fieldName":"effective_date"},"source":{"fieldName":"","fieldPath":[],"value":""},"search":{"fieldPath":[],"fieldName":""},"insert":{"fieldName":"effective_date","fieldPath":["jobRecord"]}},{"arrayListPath":[],"extract":{"fieldPath":["employeeAPIData","data","JobRecord"],"fieldName":"event_name"},"source":{"fieldName":"","fieldPath":[],"value":""},"search":{"fieldPath":[],"fieldName":""},"insert":{"fieldName":"event_name","fieldPath":["jobRecord"]}}]}},{"name":"DataTypeConvertMediator","properties":{"from":"phpArray","to":"json"}},{"name":"APIDataDispatchMediator","properties":{"oauthConfig":true,"oauthConfigData":{"grantType":"password","client_id":"public_rest_api_client","client_secret":"","scope":"","url":"https://##secondarySystemUrl##/index.php/oauth/issueToken","redirect_uri":"","state":"","username":"##secondarySystemAdminUserName##","password":"##secondarySystemAdminUserPassword##","refresh_token":""},"method":"post","dataType":"Json","parameters":[{"parameterName":"employeeNumber","fieldName":"empNumber","fieldPath":["data","employee"]}],"parametersDataPath":[],"dataPath":["employee"],"expectedResponseCode":"201","additionalHeaders":[{"Content-Type":"application/json"}],"dataURl":"https://##secondarySystemUrl##/index.php/api/employees","aggregatedFieldName":"employeeSavedData","dataConvertConfig":{"from":"json","to":"json"},"aggregatedDataSet":"message"}},{"name":"DataTypeConvertMediator","properties":{"from":"phpArray","to":"json"}},{"name":"APIDataDispatchMediator","properties":{"oauthConfig":true,"oauthConfigData":{"grantType":"password","client_id":"public_rest_api_client","client_secret":"","scope":"","url":"https://##secondarySystemUrl##/index.php/oauth/issueToken","redirect_uri":"","state":"","username":"##secondarySystemAdminUserName##","password":"##secondarySystemAdminUserPassword##","refresh_token":""},"method":"patch","dataType":"Json","parameters":[{"parameterName":"employeeNumber","fieldName":"empNumber","fieldPath":["employeeSavedData","data"]}],"parametersDataPath":[],"dataPath":["jobRecord"],"expectedResponseCode":"200","additionalHeaders":[{"Content-Type":"application/json"}],"dataURl":"https://##secondarySystemUrl##/index.php/api/employees/[employeeNumber]/job","aggregatedFieldName":"jobUpdatedData","dataConvertConfig":{"from":"json","to":"json"},"aggregatedDataSet":"message"}}]}