Skip to content

Commit

Permalink
all output columns
Browse files Browse the repository at this point in the history
  • Loading branch information
jomarko committed Jan 10, 2025
1 parent 64a5a35 commit 1a230c8
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions packages/unitables-dmn/src/DmnRunnerOutputsTable.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -275,6 +275,11 @@ function OutputsBeeTable({
return deepFlattenObjectColumn(collectedOutput, outputProperties?.properties);
}
return {
decisionName: decisionName,
decisionId: decisionId,
headerCellClickCallback: () => {
dmnSpecialCallback?.(decisionId);
},
originalId: "context-" + generateUuid(),
label: "context",
accessor: (`output-context-` + generateUuid()) as any,
Expand Down Expand Up @@ -333,6 +338,11 @@ function OutputsBeeTable({
if (Array.isArray(result)) {
return [
{
decisionName: decisionName,
decisionId: decisionId,
headerCellClickCallback: () => {
dmnSpecialCallback?.(decisionId);
},
originalId: `${outputProperties?.name}-` + generateUuid(),
label: `${outputProperties?.name}`,
accessor: (`output-array-parent-${outputProperties?.name}-` + generateUuid()) as any,
Expand All @@ -357,6 +367,11 @@ function OutputsBeeTable({
if (typeof result === "object") {
return [
{
decisionName: decisionName,
decisionId: decisionId,
headerCellClickCallback: () => {
dmnSpecialCallback?.(decisionId);
},
originalId: `${outputProperties?.name}-` + generateUuid(),
label: outputProperties?.name ?? "",
accessor: (`output-object-parent-${outputProperties?.name}-` + generateUuid()) as any,
Expand Down

0 comments on commit 1a230c8

Please sign in to comment.