Integrate wso2bps
[vfc/nfvo/wfengine.git] / wso2bpel-ext / wso2bpel-core / distribution / standalone / src / main / assembly / wso2bps / repository / conf / bps.xml
1 <?xml version="1.0" encoding="UTF-8"?>
2 <!--
3  ~ Copyright (c) 2005-2010, WSO2 Inc. (http://www.wso2.org) All Rights Reserved.
4  ~
5  ~ WSO2 Inc. licenses this file to you under the Apache License,
6  ~ Version 2.0 (the "License"); you may not use this file except
7  ~ in compliance with the License.
8  ~ You may obtain a copy of the License at
9  ~
10  ~    http://www.apache.org/licenses/LICENSE-2.0
11  ~
12  ~ Unless required by applicable law or agreed to in writing,
13  ~ software distributed under the License is distributed on an
14  ~ "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
15  ~ KIND, either express or implied.  See the License for the
16  ~ specific language governing permissions and limitations
17  ~ under the License.
18  -->
19 <tns:WSO2BPS xmlns:tns="http://wso2.org/bps/config">
20     <!-- Database Configuration for WSO2 BPS BPEL Engine's Persistence Storage  -->
21     <tns:DataBaseConfig>
22         <!-- Data source configuration. Use data sources created in data sources component. -->
23         <tns:DataSource name="bpsds">
24           <!--tns:JNDI contextFactory="com.sun.jndi.rmi.registry.RegistryContextFactory" providerURL="rmi://localhost:2199"/-->
25         </tns:DataSource>
26     </tns:DataBaseConfig>
27         
28         <tns:ExtensionBundles>
29                 <tns:runtimes>
30                         <tns:runtime class="de.unistuttgart.iaas.bpel.extensions.bpel4restlight.Bpel4RestLightExtensionBundle"/>
31                 </tns:runtimes>
32         </tns:ExtensionBundles>
33
34
35     <!-- Process dehydration configuration -->
36     <!--<tns:ProcessDehydration maxCount="0" value="true">
37         <tns:MaxAge value="0"/>
38     </tns:ProcessDehydration>-->
39
40     <!--<tns:TransactionFactory class=""/>-->
41
42     <!-- BPEL Event Listeners. They must implement BPELEventListener interface -->
43     <!--<tns:EventListeners>
44         <tns:listener class="org.wso2.bps.SampleEventListener"/>
45     </tns:EventListeners>-->
46
47     <!--tns:EventListeners>
48         <tns:listener class="org.wso2.carbon.bpel.core.ode.integration.jmx.JmxBpelEventListener"/>
49     </tns:EventListeners-->
50
51     <!-- BPEL Message Exchange Interceptors. Used to track and handle incoming and out going
52          Messages from BPEL Processes.
53     -->
54     <!--<tns:MexInterceptors>
55         <tns:interceptor class=""/>
56     </tns:MexInterceptors>-->
57
58     <!-- BPEL Extensions -->
59     <!--<tns:ExtensionBundles>
60         <tns:runtimes>
61             <tns:runtime class="org.wso2.bps.SampleExtensionRuntime"/>
62         </tns:runtimes>
63         <tns:filters>
64             <tns:filter class="org.wso2.bps.SampleCorrelationFilter"/>
65         </tns:filters>
66     </tns:ExtensionBundles>-->
67
68     <!-- OpenJPA specific configuration properties -->
69     <tns:OpenJPAConfig>
70         <tns:property name="openjpa.FlushBeforeQueries" value="true"/>
71         <tns:property name="openjpa.TransactionMode" value="local"/>
72     </tns:OpenJPAConfig>
73
74     <!-- Message exchange timeout. Default value is 120000ms -->
75     <!--<tns:MexTimeOut value="120000"/>-->
76
77     <!-- External Service invocation timeout. Default value is 60000ms -->
78     <!--<tns:ExternalServiceTimeOut value="60000"/>-->
79
80     <!-- MultithreadedHttpConnectionManager tuning parameters -->
81     <tns:MultithreadedHttpConnectionManagerConfig>
82         <tns:maxConnectionsPerHost value="20"/>
83         <tns:maxTotalConnections value="100"/>
84         <!--<tns:connectionKeepAlive value="false"/> -->
85     </tns:MultithreadedHttpConnectionManagerConfig>
86
87     <!-- Process instance cleanup feature in WSO2 Business Process Server
88          allows you to configure periodic process instance cleanup tasks based
89          on various process instance properties to remove process instance data
90          from WSO2 BPS persistence storage.
91          Refer - http://www.quartz-scheduler.org/docs/tutorials/crontrigger.html to
92          declare cron expressions format
93          Following sample configuration schedule a cleanup task at 5:11 PM every day
94          to clean completed process instances.
95     -->
96     <!--<tns:Schedules>
97         <tns:Schedule when="0 11 17 * * ?">
98             <tns:cleanup>
99                 <tns:filter><![CDATA[status=completed]]></tns:filter>
100             </tns:cleanup>
101         </tns:Schedule>
102     </tns:Schedules>-->
103
104     <!-- By default all the BPEL packages are read from the file system. If you need to Synchronize
105     the file system bpel repository with set the following parameter to true. This will check the
106     timestamp of the BPEL packages in the file system against the BPEL packages in the registry. If
107     they do not match then the BPEL package in the registry is copied to the file system. -->
108     <!--<tns:SyncWithRegistry>false</tns:SyncWithRegistry>-->
109
110     <!-- The property InMemoryInstanceTimeToLive may be used to limit the time-to-live of in-memory instances.
111      This setting can be useful to avoid memory leaks related to in-memory processes that may get
112       'stuck' during execution and never terminate (time should be specified in milliseconds) -->
113     <!--tns:InMemoryInstanceTimeToLive>600000</tns:InMemoryInstanceTimeToLive-->
114
115     <!-- This property  can be used to configure ode scheduler thread pool size  -->
116     <tns:ODESchedulerThreadPoolSize>50</tns:ODESchedulerThreadPoolSize>
117     
118     <!-- If you are using BPS in a clustered environment, then uncomment blow entry -->
119     <!-- <tns:UseDistributedLock>true</tns:UseDistributedLock> -->
120     
121     <!-- <tns:UseInstanceStateCache>true</tns:UseInstanceStateCache> -->
122
123     <!-- You can assign a unique id for each node in the cluster using NodeId property -->
124     <!-- <tns:NodeId></tns:NodeId>  -->
125
126     <!-- Simple Scheduler related configuration -->
127     <!--<tns:ODESchedulerConfiguration>-->
128         <!-- Maximum number of jobs in the "near future" todo queue. -->
129         <!--<tns:ODESchedulerQueueLength>10000</tns:ODESchedulerQueueLength>-->
130
131         <!--Jobs scheduled with a time that is between [now, now+immediateInterval] will be assigned to the current node,
132         and placed directly on the todo queue. time in ms-->
133         <!--<tns:ODESchedulerImmediateInterval>30000</tns:ODESchedulerImmediateInterval>-->
134
135         <!--Jobs scheduled with a time that is between (now+immediateInterval,now+nearFutureInterval) will be assigned to the current
136         node, but will not be placed on the todo queue (the promoter will pick them up). time in ms -->
137         <!--<tns:ODESchedulerNearFutureInterval>600000</tns:ODESchedulerNearFutureInterval>-->
138
139         <!-- Stale node check interval in ms-->
140         <!--<tns:ODESchedulerStaleInterval>10000</tns:ODESchedulerStaleInterval>-->
141
142         <!--  Estimated sustained transaction per second capacity of the system.
143         e.g. 100 means the system can process 100 jobs per seconds, on average
144         This number is used to determine how many jobs to load from the database at once.-->
145         <!--<tns:ODESchedulerTransactionsPerSecond>100</tns:ODESchedulerTransactionsPerSecond>-->
146
147         <!-- Duration used to log a warning if a job scheduled at a date D is queued at D'>D+_warningDelay -->
148         <!--<tns:ODESchedulerWarningDelay>300000</tns:ODESchedulerWarningDelay>-->
149
150         <!--  Number of immediate retries when the transaction fails -->
151         <!--<tns:ODESchedulerImmediateTransactionRetryLimit>3</tns:ODESchedulerImmediateTransactionRetryLimit>-->
152
153         <!-- Interval between immediate retries when the transaction fails -->
154         <!--<tns:ODESchedulerImmediateTransactionRetryInterval>1000</tns:ODESchedulerImmediateTransactionRetryInterval>-->
155
156     <!-- End of Simple Scheduler related configuration -->
157     <!--</tns:ODESchedulerConfiguration>--> 
158
159     <!--Configurations for BPEL UI-->
160     <tns:BpelUI>
161         <!--Set the maximum value size for a variable in a instance view in kilobytes,-->
162         <!--higher sizes may slowdown the instance view rendering. Default size is 1000KB.-->
163         <!--Please note that this only limits the displayed variable content size.-->
164         <!--<tns:InstanceViewVariableLength>1000</tns:InstanceViewVariableLength>-->
165
166         <!--This property specify the maximum number of BPEL process instances that can be deleted in a single delete instance-->
167         <!--request. Default value is 1000. Increase this with caution. It may result in various timeout exceptions.-->
168         <!--<tns:BpelInstanceDeletionLimit>1000</tns:BpelInstanceDeletionLimit>-->
169     </tns:BpelUI>
170
171     <!--Timeout for the BPEL Transaction Manager in seconds. Default is 10 minutes-->
172     <!--<tns:TransactionManagerTimeout></tns:TransactionManagerTimeout>-->
173
174 </tns:WSO2BPS>