# Variable room

room: {
configuration_workflow: (req: object) => Workflow;
connectedObjects: (configuration: any) => Promise<ConnectedObjects>;
description: string;
get_state_fields: () => never[];
name: string;
noAutoTest: boolean;
queries: (
__namedParameters: {
configuration: { columns: any; default_state: any };
req: any;
table_id: any;
viewname: any;
},
) => {};
routes: {
delprevrun: (
table_id: any,
viewname: any,
config: any,
body: any,
__namedParameters: { req: any; res: any },
) => Promise<void>;
submit_form: (
table_id: any,
viewname: any,
__namedParameters: { workflow: any },
body: any,
__namedParameters: { req: any },
) => Promise<{ json: { eval_js: string; success: string } }>;
};
run: (
table_id: any,
viewname: any,
__namedParameters: { prev_runs: any; workflow: any },
state: any,
__namedParameters: { isPreview: any; req: any; res: any },
__namedParameters: {
getRowQuery: any;
optionsQuery: any;
updateQuery: any;
},
) => Promise<string>;
tableless: boolean;
getStringsForI18n(): object[];
}

#### Type Declaration

- ##### configuration_workflow: (req: object) => Workflow

- ##### connectedObjects: (configuration: any) => Promise<ConnectedObjects>

- ##### description: string

- ##### get_state_fields: () => never[]

- ##### name: string

- ##### noAutoTest: boolean

- ##### queries: (
  __namedParameters: {
  configuration: { columns: any; default_state: any };
  req: any;
  table_id: any;
  viewname: any;
  },
  ) => {}

- ##### routes: {
  delprevrun: (
  table_id: any,
  viewname: any,
  config: any,
  body: any,
  __namedParameters: { req: any; res: any },
  ) => Promise<void>;
  submit_form: (
  table_id: any,
  viewname: any,
  __namedParameters: { workflow: any },
  body: any,
  __namedParameters: { req: any },
  ) => Promise<{ json: { eval_js: string; success: string } }>;
  }

- ##### run: (
  table_id: any,
  viewname: any,
  __namedParameters: { prev_runs: any; workflow: any },
  state: any,
  __namedParameters: { isPreview: any; req: any; res: any },
  __namedParameters: {
  getRowQuery: any;
  optionsQuery: any;
  updateQuery: any;
  },
  ) => Promise<string>

- ##### tableless: boolean

- ##### getStringsForI18n: function

  - getStringsForI18n(): object[]

    #### Returns object[]

    - Defined in packages/saltcorn-data/base-plugin/viewtemplates/workflow-room.js:382

#### Param: table_id

#### Param: viewname

#### Param: opts

#### Param: opts.participant_field

#### Param: opts.msg_relation,

#### Param: opts.msgsender_field,

#### Param: opts.msgview,

#### Param: opts.msgform,

#### Param: opts.participant_maxread_field,

#### Returns

- Defined in packages/saltcorn-data/base-plugin/viewtemplates/workflow-room.js:361