Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/main' into gamma-project
Browse files Browse the repository at this point in the history
  • Loading branch information
Paulooze committed Oct 18, 2021
2 parents 3f7e2a4 + 66eb8e6 commit 1e54184
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 5 deletions.
2 changes: 1 addition & 1 deletion packages/frinx-dashboard/src/api/uniflow/uniflow-api.ts
Original file line number Diff line number Diff line change
Expand Up @@ -178,7 +178,7 @@ export async function getWorkflowExecutionsHierarchical(

// TODO: needs rework in uniflow-api
// Get detail of existing instance of workflow
export async function getWorkflowInstanceDetail(workflowId: number): Promise<unknown> {
export async function getWorkflowInstanceDetail(workflowId: string): Promise<unknown> {
const workflowDetails = sendGetRequest(`/id/${workflowId}`);

return workflowDetails;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -127,8 +127,7 @@ const DetailsModal: FC<Props> = ({ wfId, modalHandler, onWorkflowIdClick, refres

const getData = () => {
const getWorkflowInstanceDetail = callbackUtils.getWorkflowInstanceDetailCallback();

getWorkflowInstanceDetail(+wfId).then((res: any) => {
getWorkflowInstanceDetail(wfId).then((res: any) => {
const inputCaptureRegex = /workflow\.input\.([a-zA-Z0-9-_]+)\}/gim;
const def = JSON.stringify(res);
let match = inputCaptureRegex.exec(def);
Expand Down
4 changes: 2 additions & 2 deletions packages/frinx-workflow-ui/src/utils/callback-utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ export type Callbacks = {
deleteTaskDefinition: (name: string) => Promise<TaskDefinition>;
registerTaskDefinition: (taskDefinition: TaskDefinition) => Promise<TaskDefinition>;
getWorkflowExecutions: (query?: string, start?: number, size?: string) => Promise<unknown>;
getWorkflowInstanceDetail: (workflowId: number) => Promise<unknown>;
getWorkflowInstanceDetail: (workflowId: string) => Promise<unknown>;
executeWorkflow: (workflowPayload: WorkflowPayload) => Promise<WorkflowPayload>;
getWorkflowExecutionsHierarchical: (query?: string, start?: number, size?: string) => Promise<unknown>;
terminateWorkflows: (workflowIds: string[]) => Promise<string[]>;
Expand Down Expand Up @@ -49,7 +49,7 @@ class CallbackUtils {
private deleteTaskDefinition: ((name: string) => Promise<TaskDefinition>) | null = null;
private registerTaskDefinition: ((taskDefinition: TaskDefinition) => Promise<TaskDefinition>) | null = null;
private getWorkflowExecutions: ((query?: string, start?: number, size?: string) => Promise<unknown>) | null = null;
private getWorkflowInstanceDetail: ((workflowId: number) => Promise<unknown>) | null = null;
private getWorkflowInstanceDetail: ((workflowId: string) => Promise<unknown>) | null = null;
private executeWorkflow: ((workflowPayload: WorkflowPayload) => Promise<WorkflowPayload>) | null = null;
private getWorkflowExecutionsHierarchical:
| ((query?: string, start?: number, size?: string) => Promise<unknown>)
Expand Down

0 comments on commit 1e54184

Please sign in to comment.