<?xml version="1.0"?>
<!DOCTYPE service-builder PUBLIC "-//Liferay//DTD Service Builder 7.4.0//EN" "http://www.liferay.com/dtd/liferay-service-builder_7_4_0.dtd">

<service-builder auto-import-default-references="false" auto-namespace-tables="false" change-tracking-enabled="true" dependency-injector="ds" mvcc-enabled="true" package-path="com.liferay.portal.workflow.kaleo">
	<namespace>Kaleo</namespace>
	<entity local-service="true" name="KaleoAction" remote-service="false">

		<!-- PK fields -->

		<column name="kaleoActionId" primary="true" type="long" />

		<!-- Group instance -->

		<column name="groupId" type="long" />

		<!-- Audit fields -->

		<column name="companyId" type="long" />
		<column name="userId" type="long" />
		<column name="userName" type="String" />
		<column name="createDate" type="Date" />
		<column name="modifiedDate" type="Date" />

		<!-- Other fields -->

		<column name="kaleoClassName" type="String" />
		<column name="kaleoClassPK" type="long" />
		<column name="kaleoDefinitionId" type="long" />
		<column name="kaleoDefinitionVersionId" type="long" />
		<column name="kaleoNodeName" type="String" />
		<column name="name" type="String" />
		<column name="description" type="String" />
		<column name="executionType" type="String" />
		<column name="script" type="String" />
		<column name="scriptLanguage" type="String" />
		<column name="scriptRequiredContexts" type="String" />
		<column name="priority" type="int" />

		<!-- Order -->

		<order by="asc">
			<order-column name="priority" />
		</order>

		<!-- Finder methods -->

		<finder name="CompanyId" return-type="Collection">
			<finder-column name="companyId" />
		</finder>
		<finder name="KaleoDefinitionVersionId" return-type="Collection">
			<finder-column name="kaleoDefinitionVersionId" />
		</finder>
		<finder name="KCN_KCPK" return-type="Collection">
			<finder-column name="kaleoClassName" />
			<finder-column name="kaleoClassPK" />
		</finder>
		<finder name="C_KCN_KCPK" return-type="Collection">
			<finder-column name="companyId" />
			<finder-column name="kaleoClassName" />
			<finder-column name="kaleoClassPK" />
		</finder>
		<finder name="KCN_KCPK_ET" return-type="Collection">
			<finder-column name="kaleoClassName" />
			<finder-column name="kaleoClassPK" />
			<finder-column name="executionType" />
		</finder>
		<finder name="C_KCN_KCPK_ET" return-type="Collection">
			<finder-column name="companyId" />
			<finder-column name="kaleoClassName" />
			<finder-column name="kaleoClassPK" />
			<finder-column name="executionType" />
		</finder>
	</entity>
	<entity local-service="true" name="KaleoCondition" remote-service="false">

		<!-- PK fields -->

		<column name="kaleoConditionId" primary="true" type="long" />

		<!-- Group instance -->

		<column name="groupId" type="long" />

		<!-- Audit fields -->

		<column name="companyId" type="long" />
		<column name="userId" type="long" />
		<column name="userName" type="String" />
		<column name="createDate" type="Date" />
		<column name="modifiedDate" type="Date" />

		<!-- Other fields -->

		<column name="kaleoDefinitionId" type="long" />
		<column name="kaleoDefinitionVersionId" type="long" />
		<column name="kaleoNodeId" type="long" />
		<column name="script" type="String" />
		<column name="scriptLanguage" type="String" />
		<column name="scriptRequiredContexts" type="String" />

		<!-- Order -->

		<order by="asc">
			<order-column name="kaleoConditionId" />
		</order>

		<!-- Finder methods -->

		<finder name="CompanyId" return-type="Collection">
			<finder-column name="companyId" />
		</finder>
		<finder name="KaleoDefinitionVersionId" return-type="Collection">
			<finder-column name="kaleoDefinitionVersionId" />
		</finder>
		<finder name="KaleoNodeId" return-type="KaleoCondition">
			<finder-column name="kaleoNodeId" />
		</finder>
	</entity>
	<entity local-service="true" name="KaleoDefinition" remote-service="true">

		<!-- PK fields -->

		<column name="kaleoDefinitionId" primary="true" type="long" />

		<!-- Group instance -->

		<column name="groupId" type="long" />

		<!-- Audit fields -->

		<column name="companyId" type="long" />
		<column name="userId" type="long" />
		<column name="userName" type="String" />
		<column name="createDate" type="Date" />
		<column name="modifiedDate" type="Date" />

		<!-- Other fields -->

		<column name="name" type="String" />
		<column localized="true" name="title" type="String" />
		<column name="description" type="String" />
		<column name="content" type="String" />
		<column name="scope" type="String" />
		<column name="version" type="int" />
		<column name="active" type="boolean" />

		<!-- Order -->

		<order by="desc">
			<order-column name="version" />
		</order>

		<!-- Finder methods -->

		<finder name="CompanyId" return-type="Collection">
			<finder-column name="companyId" />
		</finder>
		<finder name="C_N" return-type="KaleoDefinition">
			<finder-column name="companyId" />
			<finder-column name="name" />
		</finder>
		<finder name="C_S" return-type="Collection">
			<finder-column name="companyId" />
			<finder-column name="scope" />
		</finder>
		<finder name="C_A" return-type="Collection">
			<finder-column name="companyId" />
			<finder-column name="active" />
		</finder>
		<finder name="C_N_V" return-type="KaleoDefinition">
			<finder-column name="companyId" />
			<finder-column name="name" />
			<finder-column name="version" />
		</finder>
		<finder name="C_N_A" return-type="KaleoDefinition">
			<finder-column name="companyId" />
			<finder-column name="name" />
			<finder-column name="active" />
		</finder>
		<finder name="C_S_A" return-type="Collection">
			<finder-column name="companyId" />
			<finder-column name="scope" />
			<finder-column name="active" />
		</finder>
	</entity>
	<entity local-service="true" name="KaleoDefinitionVersion" remote-service="false">

		<!-- PK fields -->

		<column name="kaleoDefinitionVersionId" primary="true" type="long" />

		<!-- Group instance -->

		<column name="groupId" type="long" />

		<!-- Audit fields -->

		<column name="companyId" type="long" />
		<column name="userId" type="long" />
		<column name="userName" type="String" />
		<column name="createDate" type="Date" />
		<column name="modifiedDate" type="Date" />

		<!-- Other fields -->

		<column name="kaleoDefinitionId" type="long" />
		<column name="name" type="String" />
		<column localized="true" name="title" type="String" />
		<column name="description" type="String" />
		<column name="content" type="String" />
		<column name="version" type="String" />
		<column name="startKaleoNodeId" type="long" />
		<column name="status" type="int" />
		<column name="statusByUserId" type="long" />
		<column name="statusByUserName" type="String" />
		<column name="statusDate" type="Date" />

		<!-- Finder methods -->

		<finder name="CompanyId" return-type="Collection">
			<finder-column name="companyId" />
		</finder>
		<finder name="C_N" return-type="Collection">
			<finder-column name="companyId" />
			<finder-column name="name" />
		</finder>
		<finder name="C_N_V" return-type="KaleoDefinitionVersion" unique="true">
			<finder-column name="companyId" />
			<finder-column name="name" />
			<finder-column name="version" />
		</finder>
	</entity>
	<entity local-service="true" name="KaleoInstance" remote-service="false">

		<!-- PK fields -->

		<column name="kaleoInstanceId" primary="true" type="long" />

		<!-- Group instance -->

		<column name="groupId" type="long" />

		<!-- Audit fields -->

		<column name="companyId" type="long" />
		<column name="userId" type="long" />
		<column name="userName" type="String" />
		<column name="createDate" type="Date" />
		<column name="modifiedDate" type="Date" />

		<!-- Other fields -->

		<column name="kaleoDefinitionId" type="long" />
		<column name="kaleoDefinitionVersionId" type="long" />
		<column name="kaleoDefinitionName" type="String" />
		<column name="kaleoDefinitionVersion" type="int" />
		<column name="rootKaleoInstanceTokenId" type="long" />
		<column name="active" type="boolean" />
		<column name="className" type="String" />
		<column name="classPK" type="long" />
		<column name="completed" type="boolean" />
		<column name="completionDate" type="Date" />
		<column name="workflowContext" type="String" />

		<!-- Order -->

		<order by="asc">
			<order-column name="kaleoInstanceId" />
		</order>

		<!-- Finder methods -->

		<finder name="CompanyId" return-type="Collection">
			<finder-column name="companyId" />
		</finder>
		<finder name="KaleoDefinitionVersionId" return-type="Collection">
			<finder-column name="kaleoDefinitionVersionId" />
		</finder>
		<finder name="C_U" return-type="Collection">
			<finder-column name="companyId" />
			<finder-column name="userId" />
		</finder>
		<finder name="KDI_C" return-type="Collection">
			<finder-column name="kaleoDefinitionId" />
			<finder-column name="completed" />
		</finder>
		<finder name="KDVI_C" return-type="Collection">
			<finder-column name="kaleoDefinitionVersionId" />
			<finder-column name="completed" />
		</finder>
		<finder name="CN_CPK" return-type="Collection">
			<finder-column name="className" />
			<finder-column name="classPK" />
		</finder>
		<finder name="KII_C_U" return-type="KaleoInstance">
			<finder-column name="kaleoInstanceId" />
			<finder-column name="companyId" />
			<finder-column name="userId" />
		</finder>
		<finder name="C_KDN_KDV_CD" return-type="Collection">
			<finder-column name="companyId" />
			<finder-column name="kaleoDefinitionName" />
			<finder-column name="kaleoDefinitionVersion" />
			<finder-column name="completionDate" />
		</finder>
	</entity>
	<entity local-service="true" name="KaleoInstanceToken" remote-service="false">

		<!-- PK fields -->

		<column name="kaleoInstanceTokenId" primary="true" type="long" />

		<!-- Group instance -->

		<column name="groupId" type="long" />

		<!-- Audit fields -->

		<column name="companyId" type="long" />
		<column name="userId" type="long" />
		<column name="userName" type="String" />
		<column name="createDate" type="Date" />
		<column name="modifiedDate" type="Date" />

		<!-- Other fields -->

		<column name="kaleoDefinitionId" type="long" />
		<column name="kaleoDefinitionVersionId" type="long" />
		<column name="kaleoInstanceId" type="long" />
		<column name="parentKaleoInstanceTokenId" type="long" />
		<column name="currentKaleoNodeId" type="long" />
		<column name="currentKaleoNodeName" type="String" />
		<column name="className" type="String" />
		<column name="classPK" type="long" />
		<column name="completed" type="boolean" />
		<column name="completionDate" type="Date" />

		<!-- Order -->

		<order by="asc">
			<order-column name="kaleoInstanceTokenId" />
		</order>

		<!-- Finder methods -->

		<finder name="CompanyId" return-type="Collection">
			<finder-column name="companyId" />
		</finder>
		<finder name="KaleoDefinitionVersionId" return-type="Collection">
			<finder-column name="kaleoDefinitionVersionId" />
		</finder>
		<finder name="KaleoInstanceId" return-type="Collection">
			<finder-column name="kaleoInstanceId" />
		</finder>
		<finder name="C_PKITI" return-type="Collection">
			<finder-column name="companyId" />
			<finder-column name="parentKaleoInstanceTokenId" />
		</finder>
		<finder name="C_PKITI_CD" return-type="Collection">
			<finder-column name="companyId" />
			<finder-column name="parentKaleoInstanceTokenId" />
			<finder-column name="completionDate" />
		</finder>
	</entity>
	<entity local-service="true" name="KaleoLog" remote-service="false">

		<!-- PK fields -->

		<column name="kaleoLogId" primary="true" type="long" />

		<!-- Group instance -->

		<column name="groupId" type="long" />

		<!-- Audit fields -->

		<column name="companyId" type="long" />
		<column name="userId" type="long" />
		<column name="userName" type="String" />
		<column name="createDate" type="Date" />
		<column name="modifiedDate" type="Date" />

		<!-- Other fields -->

		<column name="kaleoClassName" type="String" />
		<column name="kaleoClassPK" type="long" />
		<column name="kaleoDefinitionId" type="long" />
		<column name="kaleoDefinitionVersionId" type="long" />
		<column name="kaleoInstanceId" type="long" />
		<column name="kaleoInstanceTokenId" type="long" />
		<column name="kaleoTaskInstanceTokenId" type="long" />
		<column name="kaleoNodeName" type="String" />
		<column name="terminalKaleoNode" type="boolean" />
		<column name="kaleoActionId" type="long" />
		<column name="kaleoActionName" type="String" />
		<column name="kaleoActionDescription" type="String" />
		<column name="previousKaleoNodeId" type="long" />
		<column name="previousKaleoNodeName" type="String" />
		<column name="previousAssigneeClassName" type="String" />
		<column name="previousAssigneeClassPK" type="long" />
		<column name="currentAssigneeClassName" type="String" />
		<column name="currentAssigneeClassPK" type="long" />
		<column name="type" type="String" />
		<column name="comment" type="String" />
		<column name="startDate" type="Date" />
		<column name="endDate" type="Date" />
		<column name="duration" type="long" />
		<column name="workflowContext" type="String" />

		<!-- Order -->

		<order by="asc">
			<order-column name="kaleoLogId" />
		</order>

		<!-- Finder methods -->

		<finder name="CompanyId" return-type="Collection">
			<finder-column name="companyId" />
		</finder>
		<finder name="KaleoDefinitionVersionId" return-type="Collection">
			<finder-column name="kaleoDefinitionVersionId" />
		</finder>
		<finder name="KaleoInstanceId" return-type="Collection">
			<finder-column name="kaleoInstanceId" />
		</finder>
		<finder name="KaleoTaskInstanceTokenId" return-type="Collection">
			<finder-column name="kaleoTaskInstanceTokenId" />
		</finder>
		<finder name="KITI_T" return-type="Collection">
			<finder-column name="kaleoInstanceTokenId" />
			<finder-column name="type" />
		</finder>
		<finder name="KCN_KCPK_KITI_T" return-type="Collection">
			<finder-column name="kaleoClassName" />
			<finder-column name="kaleoClassPK" />
			<finder-column name="kaleoInstanceTokenId" />
			<finder-column name="type" />
		</finder>
	</entity>
	<entity local-service="true" name="KaleoNode" remote-service="false">

		<!-- PK fields -->

		<column name="kaleoNodeId" primary="true" type="long" />

		<!-- Group instance -->

		<column name="groupId" type="long" />

		<!-- Audit fields -->

		<column name="companyId" type="long" />
		<column name="userId" type="long" />
		<column name="userName" type="String" />
		<column name="createDate" type="Date" />
		<column name="modifiedDate" type="Date" />

		<!-- Other fields -->

		<column name="kaleoDefinitionId" type="long" />
		<column name="kaleoDefinitionVersionId" type="long" />
		<column name="name" type="String" />
		<column localized="true" name="label" type="String" />
		<column name="metadata" type="String" />
		<column name="description" type="String" />
		<column name="type" type="String" />
		<column name="initial" type="boolean" />
		<column name="terminal" type="boolean" />

		<!-- Order -->

		<order by="asc">
			<order-column name="kaleoNodeId" />
		</order>

		<!-- Finder methods -->

		<finder name="CompanyId" return-type="Collection">
			<finder-column name="companyId" />
		</finder>
		<finder name="KaleoDefinitionVersionId" return-type="Collection">
			<finder-column name="kaleoDefinitionVersionId" />
		</finder>
		<finder name="C_KDVI" return-type="Collection">
			<finder-column name="companyId" />
			<finder-column name="kaleoDefinitionVersionId" />
		</finder>
	</entity>
	<entity local-service="true" name="KaleoNotification" remote-service="false">

		<!-- PK fields -->

		<column name="kaleoNotificationId" primary="true" type="long" />

		<!-- Group instance -->

		<column name="groupId" type="long" />

		<!-- Audit fields -->

		<column name="companyId" type="long" />
		<column name="userId" type="long" />
		<column name="userName" type="String" />
		<column name="createDate" type="Date" />
		<column name="modifiedDate" type="Date" />

		<!-- Other fields -->

		<column name="kaleoClassName" type="String" />
		<column name="kaleoClassPK" type="long" />
		<column name="kaleoDefinitionId" type="long" />
		<column name="kaleoDefinitionVersionId" type="long" />
		<column name="kaleoNodeName" type="String" />
		<column name="name" type="String" />
		<column name="description" type="String" />
		<column name="executionType" type="String" />
		<column name="template" type="String" />
		<column name="templateLanguage" type="String" />
		<column name="notificationTypes" type="String" />

		<!-- Order -->

		<order by="asc">
			<order-column name="kaleoNotificationId" />
		</order>

		<!-- Finder methods -->

		<finder name="CompanyId" return-type="Collection">
			<finder-column name="companyId" />
		</finder>
		<finder name="KaleoDefinitionVersionId" return-type="Collection">
			<finder-column name="kaleoDefinitionVersionId" />
		</finder>
		<finder name="KCN_KCPK" return-type="Collection">
			<finder-column name="kaleoClassName" />
			<finder-column name="kaleoClassPK" />
		</finder>
		<finder name="KCN_KCPK_ET" return-type="Collection">
			<finder-column name="kaleoClassName" />
			<finder-column name="kaleoClassPK" />
			<finder-column name="executionType" />
		</finder>
	</entity>
	<entity local-service="true" name="KaleoNotificationRecipient" remote-service="false">

		<!-- PK fields -->

		<column name="kaleoNotificationRecipientId" primary="true" type="long" />

		<!-- Group instance -->

		<column name="groupId" type="long" />

		<!-- Audit fields -->

		<column name="companyId" type="long" />
		<column name="userId" type="long" />
		<column name="userName" type="String" />
		<column name="createDate" type="Date" />
		<column name="modifiedDate" type="Date" />

		<!-- Other fields -->

		<column name="kaleoDefinitionId" type="long" />
		<column name="kaleoDefinitionVersionId" type="long" />
		<column name="kaleoNotificationId" type="long" />
		<column name="recipientClassName" type="String" />
		<column name="recipientClassPK" type="long" />
		<column name="recipientRoleType" type="int" />
		<column name="recipientScript" type="String" />
		<column name="recipientScriptLanguage" type="String" />
		<column name="recipientScriptContexts" type="String" />
		<column name="address" type="String" />
		<column name="notificationReceptionType" type="String" />

		<!-- Order -->

		<order by="asc">
			<order-column name="kaleoNotificationRecipientId" />
		</order>

		<!-- Finder methods -->

		<finder name="CompanyId" return-type="Collection">
			<finder-column name="companyId" />
		</finder>
		<finder name="KaleoDefinitionVersionId" return-type="Collection">
			<finder-column name="kaleoDefinitionVersionId" />
		</finder>
		<finder name="KaleoNotificationId" return-type="Collection">
			<finder-column name="kaleoNotificationId" />
		</finder>
	</entity>
	<entity local-service="true" name="KaleoTask" remote-service="false">

		<!-- PK fields -->

		<column name="kaleoTaskId" primary="true" type="long" />

		<!-- Group instance -->

		<column name="groupId" type="long" />

		<!-- Audit fields -->

		<column name="companyId" type="long" />
		<column name="userId" type="long" />
		<column name="userName" type="String" />
		<column name="createDate" type="Date" />
		<column name="modifiedDate" type="Date" />

		<!-- Other fields -->

		<column name="kaleoDefinitionId" type="long" />
		<column name="kaleoDefinitionVersionId" type="long" />
		<column name="kaleoNodeId" type="long" />
		<column name="name" type="String" />
		<column name="description" type="String" />

		<!-- Order -->

		<order by="asc">
			<order-column name="kaleoTaskId" />
		</order>

		<!-- Finder methods -->

		<finder name="CompanyId" return-type="Collection">
			<finder-column name="companyId" />
		</finder>
		<finder name="KaleoDefinitionVersionId" return-type="Collection">
			<finder-column name="kaleoDefinitionVersionId" />
		</finder>
		<finder name="KaleoNodeId" return-type="KaleoTask">
			<finder-column name="kaleoNodeId" />
		</finder>
	</entity>
	<entity local-service="true" name="KaleoTaskAssignment" remote-service="false">

		<!-- PK fields -->

		<column name="kaleoTaskAssignmentId" primary="true" type="long" />

		<!-- Group instance -->

		<column name="groupId" type="long" />

		<!-- Audit fields -->

		<column name="companyId" type="long" />
		<column name="userId" type="long" />
		<column name="userName" type="String" />
		<column name="createDate" type="Date" />
		<column name="modifiedDate" type="Date" />

		<!-- Other fields -->

		<column name="kaleoClassName" type="String" />
		<column name="kaleoClassPK" type="long" />
		<column name="kaleoDefinitionId" type="long" />
		<column name="kaleoDefinitionVersionId" type="long" />
		<column name="kaleoNodeId" type="long" />
		<column name="assigneeClassName" type="String" />
		<column name="assigneeClassPK" type="long" />
		<column name="assigneeActionId" type="String" />
		<column name="assigneeScript" type="String" />
		<column name="assigneeScriptLanguage" type="String" />
		<column name="assigneeScriptRequiredContexts" type="String" />

		<!-- Order -->

		<order by="asc">
			<order-column name="kaleoTaskAssignmentId" />
		</order>

		<!-- Finder methods -->

		<finder name="CompanyId" return-type="Collection">
			<finder-column name="companyId" />
		</finder>
		<finder name="KaleoDefinitionVersionId" return-type="Collection">
			<finder-column name="kaleoDefinitionVersionId" />
		</finder>
		<finder name="KCN_KCPK" return-type="Collection">
			<finder-column name="kaleoClassName" />
			<finder-column name="kaleoClassPK" />
		</finder>
		<finder name="KCN_KCPK_ACN" return-type="Collection">
			<finder-column name="kaleoClassName" />
			<finder-column name="kaleoClassPK" />
			<finder-column name="assigneeClassName" />
		</finder>
	</entity>
	<entity local-service="true" name="KaleoTaskAssignmentInstance" remote-service="false">

		<!-- PK fields -->

		<column name="kaleoTaskAssignmentInstanceId" primary="true" type="long" />

		<!-- Group instance -->

		<column name="groupId" type="long" />

		<!-- Audit fields -->

		<column name="companyId" type="long" />
		<column name="userId" type="long" />
		<column name="userName" type="String" />
		<column name="createDate" type="Date" />
		<column name="modifiedDate" type="Date" />

		<!-- Other fields -->

		<column name="kaleoDefinitionId" type="long" />
		<column name="kaleoDefinitionVersionId" type="long" />
		<column name="kaleoInstanceId" type="long" />
		<column name="kaleoInstanceTokenId" type="long" />
		<column name="kaleoTaskInstanceTokenId" type="long" />
		<column name="kaleoTaskId" type="long" />
		<column name="kaleoTaskName" type="String" />
		<column name="assigneeClassName" type="String" />
		<column name="assigneeClassPK" type="long" />
		<column name="completed" type="boolean" />
		<column name="completionDate" type="Date" />

		<!-- Order -->

		<order by="asc">
			<order-column name="kaleoTaskAssignmentInstanceId" />
		</order>

		<!-- Finder methods -->

		<finder name="CompanyId" return-type="Collection">
			<finder-column name="companyId" />
		</finder>
		<finder name="KaleoDefinitionVersionId" return-type="Collection">
			<finder-column name="kaleoDefinitionVersionId" />
		</finder>
		<finder name="KaleoInstanceId" return-type="Collection">
			<finder-column name="kaleoInstanceId" />
		</finder>
		<finder name="KaleoTaskInstanceTokenId" return-type="Collection">
			<finder-column name="kaleoTaskInstanceTokenId" />
		</finder>
		<finder name="AssigneeClassName" return-type="Collection">
			<finder-column name="assigneeClassName" />
		</finder>
		<finder name="G_ACPK" return-type="Collection">
			<finder-column name="groupId" />
			<finder-column name="assigneeClassPK" />
		</finder>
		<finder name="KTITI_ACN" return-type="Collection">
			<finder-column name="kaleoTaskInstanceTokenId" />
			<finder-column name="assigneeClassName" />
		</finder>
		<finder name="ACN_ACPK" return-type="Collection">
			<finder-column name="assigneeClassName" />
			<finder-column name="assigneeClassPK" />
		</finder>
	</entity>
	<entity local-service="true" name="KaleoTaskForm" remote-service="false">

		<!-- PK fields -->

		<column name="kaleoTaskFormId" primary="true" type="long" />

		<!-- Group instance -->

		<column name="groupId" type="long" />

		<!-- Audit fields -->

		<column name="companyId" type="long" />
		<column name="userId" type="long" />
		<column name="userName" type="String" />
		<column name="createDate" type="Date" />
		<column name="modifiedDate" type="Date" />

		<!-- Other fields -->

		<column name="kaleoDefinitionId" type="long" />
		<column name="kaleoDefinitionVersionId" type="long" />
		<column name="kaleoNodeId" type="long" />
		<column name="kaleoTaskId" type="long" />
		<column name="kaleoTaskName" type="String" />
		<column name="name" type="String" />
		<column name="description" type="String" />
		<column name="formCompanyId" type="long" />
		<column name="formDefinition" type="String" />
		<column name="formGroupId" type="long" />
		<column name="formId" type="long" />
		<column name="formUuid" type="String" />
		<column name="metadata" type="String" />
		<column name="priority" type="int" />

		<!-- Order -->

		<order by="asc">
			<order-column name="priority" />
		</order>

		<!-- Finder methods -->

		<finder name="CompanyId" return-type="Collection">
			<finder-column name="companyId" />
		</finder>
		<finder name="KaleoDefinitionVersionId" return-type="Collection">
			<finder-column name="kaleoDefinitionVersionId" />
		</finder>
		<finder name="KaleoNodeId" return-type="Collection">
			<finder-column name="kaleoNodeId" />
		</finder>
		<finder name="KaleoTaskId" return-type="Collection">
			<finder-column name="kaleoTaskId" />
		</finder>
		<finder name="FormUuid_KTI" return-type="KaleoTaskForm">
			<finder-column name="kaleoTaskId" />
			<finder-column name="formUuid" />
		</finder>
	</entity>
	<entity local-service="true" name="KaleoTaskFormInstance" remote-service="false">

		<!-- PK fields -->

		<column name="kaleoTaskFormInstanceId" primary="true" type="long" />

		<!-- Group instance -->

		<column name="groupId" type="long" />

		<!-- Audit fields -->

		<column name="companyId" type="long" />
		<column name="userId" type="long" />
		<column name="userName" type="String" />
		<column name="createDate" type="Date" />
		<column name="modifiedDate" type="Date" />

		<!-- Other fields -->

		<column name="kaleoDefinitionId" type="long" />
		<column name="kaleoDefinitionVersionId" type="long" />
		<column name="kaleoInstanceId" type="long" />
		<column name="kaleoTaskId" type="long" />
		<column name="kaleoTaskInstanceTokenId" type="long" />
		<column name="kaleoTaskFormId" type="long" />
		<column name="formValues" type="String" />
		<column name="formValueEntryGroupId" type="long" />
		<column name="formValueEntryId" type="long" />
		<column name="formValueEntryUuid" type="String" />
		<column name="metadata" type="String" />

		<!-- Order -->

		<order by="asc">
			<order-column name="kaleoTaskFormInstanceId" />
		</order>

		<!-- Finder methods -->

		<finder name="CompanyId" return-type="Collection">
			<finder-column name="companyId" />
		</finder>
		<finder name="KaleoDefinitionVersionId" return-type="Collection">
			<finder-column name="kaleoDefinitionVersionId" />
		</finder>
		<finder name="KaleoInstanceId" return-type="Collection">
			<finder-column name="kaleoInstanceId" />
		</finder>
		<finder name="KaleoTaskId" return-type="Collection">
			<finder-column name="kaleoTaskId" />
		</finder>
		<finder name="KaleoTaskInstanceTokenId" return-type="Collection">
			<finder-column name="kaleoTaskInstanceTokenId" />
		</finder>
		<finder name="KaleoTaskFormId" return-type="KaleoTaskFormInstance">
			<finder-column name="kaleoTaskFormId" />
		</finder>
	</entity>
	<entity local-service="true" name="KaleoTaskInstanceToken" remote-service="false">

		<!-- PK fields -->

		<column name="kaleoTaskInstanceTokenId" primary="true" type="long" />

		<!-- Group instance -->

		<column name="groupId" type="long" />

		<!-- Audit fields -->

		<column name="companyId" type="long" />
		<column name="userId" type="long" />
		<column name="userName" type="String" />
		<column name="createDate" type="Date" />
		<column name="modifiedDate" type="Date" />

		<!-- Other fields -->

		<column name="kaleoDefinitionId" type="long" />
		<column name="kaleoDefinitionVersionId" type="long" />
		<column name="kaleoInstanceId" type="long" />
		<column name="kaleoInstanceTokenId" type="long" />
		<column name="kaleoTaskId" type="long" />
		<column name="kaleoTaskName" type="String" />
		<column name="className" type="String" />
		<column name="classPK" type="long" />
		<column name="completionUserId" type="long" />
		<column name="completed" type="boolean" />
		<column name="completionDate" type="Date" />
		<column name="dueDate" type="Date" />
		<column name="workflowContext" type="String" />

		<!-- Order -->

		<order by="asc">
			<order-column name="kaleoTaskInstanceTokenId" />
		</order>

		<!-- Finder methods -->

		<finder name="CompanyId" return-type="Collection">
			<finder-column name="companyId" />
		</finder>
		<finder name="KaleoDefinitionVersionId" return-type="Collection">
			<finder-column name="kaleoDefinitionVersionId" />
		</finder>
		<finder name="KaleoInstanceId" return-type="Collection">
			<finder-column name="kaleoInstanceId" />
		</finder>
		<finder name="C_U" return-type="Collection">
			<finder-column name="companyId" />
			<finder-column name="userId" />
		</finder>
		<finder name="KII_KTI" return-type="KaleoTaskInstanceToken">
			<finder-column name="kaleoInstanceId" />
			<finder-column name="kaleoTaskId" />
		</finder>
		<finder name="CN_CPK" return-type="Collection">
			<finder-column name="className" />
			<finder-column name="classPK" />
		</finder>
		<finder name="C_U_C" return-type="Collection">
			<finder-column name="companyId" />
			<finder-column name="userId" />
			<finder-column name="completed" />
		</finder>
	</entity>
	<entity local-service="true" name="KaleoTimer" remote-service="false">

		<!-- PK fields -->

		<column name="kaleoTimerId" primary="true" type="long" />

		<!-- Group instance -->

		<column name="groupId" type="long" />

		<!-- Audit fields -->

		<column name="companyId" type="long" />
		<column name="userId" type="long" />
		<column name="userName" type="String" />
		<column name="createDate" type="Date" />
		<column name="modifiedDate" type="Date" />

		<!-- Other fields -->

		<column name="kaleoClassName" type="String" />
		<column name="kaleoClassPK" type="long" />
		<column name="kaleoDefinitionId" type="long" />
		<column name="kaleoDefinitionVersionId" type="long" />
		<column name="name" type="String" />
		<column name="blocking" type="boolean" />
		<column name="description" type="String" />
		<column name="duration" type="double" />
		<column name="scale" type="String" />
		<column name="recurrenceDuration" type="double" />
		<column name="recurrenceScale" type="String" />

		<!-- Order -->

		<order by="asc">
			<order-column name="kaleoTimerId" />
		</order>

		<!-- Finder methods -->

		<finder name="KCN_KCPK" return-type="Collection">
			<finder-column name="kaleoClassName" />
			<finder-column name="kaleoClassPK" />
		</finder>
		<finder name="KCN_KCPK_Blocking" return-type="Collection">
			<finder-column name="kaleoClassName" />
			<finder-column name="kaleoClassPK" />
			<finder-column name="blocking" />
		</finder>
	</entity>
	<entity local-service="true" name="KaleoTimerInstanceToken" remote-service="false">

		<!-- PK fields -->

		<column name="kaleoTimerInstanceTokenId" primary="true" type="long" />

		<!-- Group instance -->

		<column name="groupId" type="long" />

		<!-- Audit fields -->

		<column name="companyId" type="long" />
		<column name="userId" type="long" />
		<column name="userName" type="String" />
		<column name="createDate" type="Date" />
		<column name="modifiedDate" type="Date" />

		<!-- Other fields -->

		<column name="kaleoClassName" type="String" />
		<column name="kaleoClassPK" type="long" />
		<column name="kaleoDefinitionId" type="long" />
		<column name="kaleoDefinitionVersionId" type="long" />
		<column name="kaleoInstanceId" type="long" />
		<column name="kaleoInstanceTokenId" type="long" />
		<column name="kaleoTaskInstanceTokenId" type="long" />
		<column name="kaleoTimerId" type="long" />
		<column name="kaleoTimerName" type="String" />
		<column name="blocking" type="boolean" />
		<column name="completionUserId" type="long" />
		<column name="completed" type="boolean" />
		<column name="completionDate" type="Date" />
		<column name="workflowContext" type="String" />

		<!-- Order -->

		<order by="asc">
			<order-column name="kaleoTimerInstanceTokenId" />
		</order>

		<!-- Finder methods -->

		<finder name="KaleoInstanceId" return-type="Collection">
			<finder-column name="kaleoInstanceId" />
		</finder>
		<finder name="KITI_KTI" return-type="KaleoTimerInstanceToken">
			<finder-column name="kaleoInstanceTokenId" />
			<finder-column name="kaleoTimerId" />
		</finder>
		<finder name="KITI_C" return-type="Collection">
			<finder-column name="kaleoInstanceTokenId" />
			<finder-column name="completed" />
		</finder>
		<finder name="KITI_B_C" return-type="Collection">
			<finder-column name="kaleoInstanceTokenId" />
			<finder-column name="blocking" />
			<finder-column name="completed" />
		</finder>
	</entity>
	<entity local-service="true" name="KaleoTransition" remote-service="false">

		<!-- PK fields -->

		<column name="kaleoTransitionId" primary="true" type="long" />

		<!-- Group instance -->

		<column name="groupId" type="long" />

		<!-- Audit fields -->

		<column name="companyId" type="long" />
		<column name="userId" type="long" />
		<column name="userName" type="String" />
		<column name="createDate" type="Date" />
		<column name="modifiedDate" type="Date" />

		<!-- Other fields -->

		<column name="kaleoDefinitionId" type="long" />
		<column name="kaleoDefinitionVersionId" type="long" />
		<column name="kaleoNodeId" type="long" />
		<column name="name" type="String" />
		<column localized="true" name="label" type="String" />
		<column name="description" type="String" />
		<column name="sourceKaleoNodeId" type="long" />
		<column name="sourceKaleoNodeName" type="String" />
		<column name="targetKaleoNodeId" type="long" />
		<column name="targetKaleoNodeName" type="String" />
		<column name="defaultTransition" type="boolean" />

		<!-- Order -->

		<order by="asc">
			<order-column name="kaleoTransitionId" />
		</order>

		<!-- Finder methods -->

		<finder name="CompanyId" return-type="Collection">
			<finder-column name="companyId" />
		</finder>
		<finder name="KaleoDefinitionVersionId" return-type="Collection">
			<finder-column name="kaleoDefinitionVersionId" />
		</finder>
		<finder name="KaleoNodeId" return-type="Collection">
			<finder-column name="kaleoNodeId" />
		</finder>
		<finder name="KNI_N" return-type="KaleoTransition">
			<finder-column name="kaleoNodeId" />
			<finder-column name="name" />
		</finder>
		<finder name="KNI_DT" return-type="KaleoTransition">
			<finder-column name="kaleoNodeId" />
			<finder-column name="defaultTransition" />
		</finder>
	</entity>
	<exceptions>
		<exception>DuplicateKaleoDefinitionName</exception>
		<exception>KaleoDefinitionContent</exception>
		<exception>KaleoDefinitionName</exception>
	</exceptions>
</service-builder>