Skip to content

Commit

Permalink
Merge pull request AOT-Technologies#2301 from abilpraju-aot/bugfix/pr…
Browse files Browse the repository at this point in the history
…ocess-service

bugfix processkey
  • Loading branch information
arun-s-aot authored Oct 24, 2024
2 parents 09e5e0f + b41b8b3 commit f168cf1
Showing 1 changed file with 13 additions and 14 deletions.
27 changes: 13 additions & 14 deletions forms-flow-web/src/apiManager/services/processServices.js
Original file line number Diff line number Diff line change
Expand Up @@ -285,8 +285,17 @@ export const getFormProcesses = (formId, ...rest) => {
};
};

export const getProcessDetails = (processKey) =>
RequestService.httpGETRequest(`${API.GET_PROCESSES_DETAILS}/${processKey}`);
export const getProcessDetails = (processKey, tenant_key) => {
const api = API.GET_PROCESS_XML;
let url = replaceUrl(api, "<process_key>", processKey);

if (tenant_key) {
url = url + `?tenantId=${tenant_key}`;
}

return RequestService.httpGETRequest(url);
};


export const updateProcess = ({id,data,type}) => {
return RequestService.httpPUTRequest(`${API.GET_PROCESSES_DETAILS}/${id}`,
Expand Down Expand Up @@ -473,21 +482,11 @@ export const fetchDiagram = (
tenant_key = null,
...rest
) => {
const api = API.GET_PROCESS_XML;
let url = replaceUrl(api, "<process_key>", process_key);

if (tenant_key) {
url = url + `?tenantId=${tenant_key}`;
}


const done = rest.length ? rest[0] : () => { };
return (dispatch) => {
RequestService.httpGETRequest(
url,
{},
StorageService.get(StorageService.User.AUTH_TOKEN),
true
)
getProcessDetails(process_key,tenant_key)
.then((res) => {
if (res.data) {
dispatch(
Expand Down

0 comments on commit f168cf1

Please sign in to comment.