Scope of Dynamic KnowledgeSessions - drools-camel-server - apache-camel

Env: Drools v6
How does drools-camel manage the scopes of KnowledgeSessions, in general, may it be stateful or stateless?
And I would like to know esp. the scope management of dynamic knowledge sessions.
is it org.kie.camel.component.KiePolicy or KieEndpoint ?
Kindly refer to my other question on how dynamic knowledge sessions has to be created.

You can always create your sessions manually in your own service and define your own polices based on what you are trying to solve. The camel server in 6 was just an example and one of the many options of how to create a drools service.
HTH

Related

Calling MS Dynamics CRM SOAP Service using Angular JS

I am developing an ionic application which will interact with MS Dynamics CRM. I have looked online for solutions, but all solutions are either RESTful implementations or non MS Dynamics implementations. Has anyone implemented SOAP services of MS Dynamics using Angular JS? If possible please share example.
Several questions that probably will lead you to solution:
Do you have special requirements to use SOAP? Most of CRM functionality successfully exposed via REST / OData endpoints. Only for really none-trivial cases you would need to use SOAP syntax. You can check list of current limitations here. Consider using REST instead.
Another question would be, where your application is deployed? Is it within CRM itself? Or not? If Angular application is started within CRM (as WebResource) this is a lot simpler! Since you are already authorized to the service and you don't need to bother about that. In this case maybe this library could provide you some help... there are several approaches to create great middleware for SOAP requests to CRM, this seems to be most modern one.
But if you're not authorized... This is whole new level of the problem... Which environment you're targeting? OnLine? OnPrem?
In that case, first you need to authorize, then you can proceed with your queries, for example with the help of the library on previous step. There is one JS library that could help. It is abandoned, but you can take a look on the code. I'm talking about dynamicscrm-api. It won't work in browser, but it will give you understanding, how you can move on.

CodeIgniter Multi-site Setup

I am trying to create multi-site platform using codeigniter.
Requirements are:
- Same Codebase.
- Same Database.
Just wanted to know how to achieve multi-site platform if we use same database/codebase?
Is there any way we can create separate tables for each new site i.e wordpress multisite?
Thanks a lot.
For separate sites you have to create separate directories, and set paths accordingly
eg.
application/contollers/site1/index.php
application/contollers/site2/index.php
Same for views and models
For database you can use prefix,
eg: if u are creating same site in different languages
eng_title
arabic_title
eng_description
arabic_description or arb_description
and you can fetch your desired data with your query and condition.
CI tutorial would be helpful for your requirements, please check
Running Multiple Applications with one CodeIgniter Installation

CakePHP create folder in controller? [Need Expert Advice]

How is it possible to have folder in controller?
For example this scenario: We have multiples clients and each clients might have different package that share the common controller or different controller based on their own request. So I was thinking to separate them by directory in the controller.
Any Expert in Architecture can help this?
This is probably possible, but is certainly not the way you should do things with Cake (or MVC in general, probably).
I suggest that you have a separate app for each client. If you have any specific questions regarding this, or would like to add more information to your question about what you're trying to do, I can try to give you a more in-depth answer.
Without knowing more it is hard to say.
I assume you have one app that is used by multiple clients through subdomains or something else to make a difference between who is using it.
You can have a plugin per client that extends the base apps controllers as needed. You also can have different models and views then. Use routes to make the different named controllers match always the same URLno matter what client is logged in.
I would prefer a one app solution over multiple applications because it reduces the maintenance overhead a lot. But if you want to for multiple apps I would build the core of the application that is shared by all sites as a plugin itself. Using git and submodules you can then even control what version of the core module each site is using.

Symfony same webservice working on Databases

Here is the issue:
I have some methods in action in a Symfony project that are defined in WSDL.
I need a configuration where my ws can work on one of two data bases according to environment.
I tried defining different environments and even different applications.But they all insist to use the DB from the databases.yml under the config on the level of apps.
I really appreciate any help
In order to select the database connections dynamically you can use the same technique demonstrated in this slide
http://www.slideshare.net/kriswallsmith/symfony-in-the-cloud

Zend Framework. What is the best way to administer your site/app?

When developing for the Zend Framework is it common for developers to have to build a custom backend admin area for each unique app? Or is there a popular 3rd party backend tool people are using to manipulate your app's database?
I'm thinking of learning ZF but what stands out is how do you keep an eye on what users are doing with your app?
You have two basic choices:
Create two modules: frontend and admin. All your controllers live within
Within each module have an admin controller within the module to adminstrate it
In either case, I use a Front Controller plugin to swap the layout to admin.phtml so I have a different look and feel for my administration system. This is of course, optional :)
I tend to create an 'AdminController' specific to the application if there are too many administrative functions, or an Admin Module if there are (or there is a real possibility for the number of administrative functions to increase).
Well, in general I consider it enough to manipulate my db with let's say phpmyadmin or directly in my IDE (Aptana).
For the tasks I want to allow certain administrators to perform online I write an admin controller. Such tasks are mostly so specific, complex, dynamic that some kind of generic generator system wouldn't probably help a lot.
Still, there is at least one so called 3rd party tool I know of which falls into the category you're mentioning in your question.
DataGrid for Zend Framework
ZendFramework is not a Toolkit to create specific Application with users and, lets say articles etc. So there can't be such a 3rd party tool. I would create a admin module, not a controller, because that means you have just 1 File for all admintasks.

Resources