Google Groups Home
Help | Sign in
changeset 12271 and disabling process flow optional state settings
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  2 messages - Collapse all  -  Translate all to Translated (View all originals)
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
Adam Monsen  
View profile  
 More options Jan 24 2008, 6:49 pm
From: "Adam Monsen" <hair...@gmail.com>
Date: Thu, 24 Jan 2008 15:49:12 -0800
Local: Thurs, Jan 24 2008 6:49 pm
Subject: [Mifos-developer] changeset 12271 and disabling process flow optional state settings
Changeset 12271 moves some configuration settings from the database to
the application-wide configuration file. Here the the settings and
their default values:

    ProcessFlow.ClientPendingApprovalStateEnabled=true
    ProcessFlow.GroupPendingApprovalStateEnabled=true
    ProcessFlow.LoanDisbursedToLoanOfficerStateEnabled=false
    ProcessFlow.LoanPendingApprovalStateEnabled=true
    ProcessFlow.SavingsPendingApprovalStateEnabled=true

These settings were previously only configurable by directly modifying
rows in the CUSTOMER_STATE and ACCOUNT_STATE tables.

If you wish to enable the "Loan Disbursed to Loan Officer" setting,
create a file called applicationConfiguration.custom.properties with
the following:

    ProcessFlow.LoanDisbursedToLoanOfficerStateEnabled=true

and place it in your app server's classpath. This procedure will
eventually be added to the "Configuring Mifos" page on mifos.org (
http://tinyurl.com/375mgu ).

If you wish to disable any of the process flow optional state settings
(either because they are currently disabled in your development
database, or because you are starting to use Mifos for the first
time), not only do you have to do the .custom.properties override as
mentioned above, you must also do a custom query against the database.
BOTH OVERRIDES MUST BE PERFORMED BEFORE STARTING THE APP SERVER WITH A
WAR BUILT FROM THIS NEW CODE. This double-override is necessary
because the settings can currently only be turned on, and the database
is used to track if these values have been turned on. A user interface
for turning them off would require business logic that doesn't exist.
Here are the queries to turn off the settings:

ProcessFlow.ClientPendingApprovalStateEnabled
    UPDATE CUSTOMER_STATE WHERE STATUS_ID=2 SET CURRENTLY_IN_USE=0;

ProcessFlow.GroupPendingApprovalStateEnabled
    UPDATE CUSTOMER_STATE WHERE STATUS_ID=8 SET CURRENTLY_IN_USE=0;

ProcessFlow.LoanPendingApprovalStateEnabled
    UPDATE ACCOUNT_STATE WHERE ACCOUNT_STATE_ID=2 SET CURRENTLY_IN_USE=0;

ProcessFlow.SavingsPendingApprovalStateEnabled
    UPDATE ACCOUNT_STATE WHERE ACCOUNT_STATE_ID=14 SET CURRENTLY_IN_USE=0;

Related information on this chunk of code:
http://snipr.com/1y6in
http://mingle.mifos.org:7070/projects/mifos/cards/23

--
Adam Monsen

-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Adam Monsen  
View profile  
 More options Jan 24 2008, 6:56 pm
From: "Adam Monsen" <hair...@gmail.com>
Date: Thu, 24 Jan 2008 15:56:13 -0800
Local: Thurs, Jan 24 2008 6:56 pm
Subject: Re: [Mifos-developer] changeset 12271 and disabling process flow optional state settings
Whoops, I messed up. Here are the correct queries needed to disable
the settings:

ProcessFlow.ClientPendingApprovalStateEnabled
    UPDATE CUSTOMER_STATE SET CURRENTLY_IN_USE=0 WHERE STATUS_ID=2;

ProcessFlow.GroupPendingApprovalStateEnabled
    UPDATE CUSTOMER_STATE SET CURRENTLY_IN_USE=0 WHERE STATUS_ID=8;

ProcessFlow.LoanPendingApprovalStateEnabled
    UPDATE ACCOUNT_STATE SET CURRENTLY_IN_USE=0 WHERE ACCOUNT_STATE_ID=2;

ProcessFlow.SavingsPendingApprovalStateEnabled
    UPDATE ACCOUNT_STATE SET CURRENTLY_IN_USE=0 WHERE ACCOUNT_STATE_ID=14;

--
Adam Monsen

-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »

Create a group - Google Groups - Google Home - Terms of Service - Privacy Policy
©2009 Google