blob: dafee0a54bbe2f8a222dc1666c41713fffb7e458 [file] [log] [blame]
/********************************************************************************
* Copyright (c) 2020 Contributors to the Eclipse Foundation
*
* See the NOTICE file(s) distributed with this work for additional
* information regarding copyright ownership.
*
* This program and the accompanying materials are made available under the
* terms of the Eclipse Public License 2.0 which is available at
* http://www.eclipse.org/legal/epl-2.0
*
* SPDX-License-Identifier: EPL-2.0
********************************************************************************/
import {createAction, props} from "@ngrx/store";
import {IAPIProcessObject, IAPIProcessTask, IAPIStatementHistory} from "../../../core/api/process";
export const claimTaskAction = createAction(
"[Details] Claim task",
props<{ statementId: number, taskId: string, options?: { negative?: boolean } }>()
);
export const completeTaskAction = createAction(
"[Edit] Complete task",
props<{ statementId: number; taskId: string, variables: IAPIProcessObject }>()
);
export const setTasksAction = createAction(
"[API] Set tasks",
props<{ statementId: number, tasks: IAPIProcessTask[] }>()
);
export const deleteTaskAction = createAction(
"[API] Delete task",
props<{ statementId: number; taskId: string }>()
);
export const updateTaskAction = createAction(
"[API] Set task",
props<{ task: IAPIProcessTask }>()
);
export const setHistoryAction = createAction(
"[API] Set process history",
props<{ statementId: number, history: IAPIStatementHistory }>()
);
export const setDiagramAction = createAction(
"[API] Set bpmn diagram",
props<{ statementId: number, diagram: string }>()
);