Return-Path: X-Original-To: archive-asf-public-internal@cust-asf2.ponee.io Delivered-To: archive-asf-public-internal@cust-asf2.ponee.io Received: from cust-asf.ponee.io (cust-asf.ponee.io [163.172.22.183]) by cust-asf2.ponee.io (Postfix) with ESMTP id 36C07200B49 for ; Wed, 3 Aug 2016 09:25:28 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id 35462160A86; Wed, 3 Aug 2016 07:25:28 +0000 (UTC) Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by cust-asf.ponee.io (Postfix) with SMTP id 7DDA1160A64 for ; Wed, 3 Aug 2016 09:25:27 +0200 (CEST) Received: (qmail 56750 invoked by uid 500); 3 Aug 2016 07:25:26 -0000 Mailing-List: contact dev-help@fineract.incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@fineract.incubator.apache.org Delivered-To: mailing list dev@fineract.incubator.apache.org Received: (qmail 56739 invoked by uid 99); 3 Aug 2016 07:25:26 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd4-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 03 Aug 2016 07:25:26 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd4-us-west.apache.org (ASF Mail Server at spamd4-us-west.apache.org) with ESMTP id 2E90BC0C04 for ; Wed, 3 Aug 2016 07:25:26 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd4-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: -4.646 X-Spam-Level: X-Spam-Status: No, score=-4.646 tagged_above=-999 required=6.31 tests=[KAM_ASCII_DIVIDERS=0.8, KAM_LAZY_DOMAIN_SECURITY=1, RCVD_IN_DNSWL_HI=-5, RCVD_IN_MSPIKE_H3=-0.01, RCVD_IN_MSPIKE_WL=-0.01, RP_MATCHES_RCVD=-1.426] autolearn=disabled Received: from mx1-lw-eu.apache.org ([10.40.0.8]) by localhost (spamd4-us-west.apache.org [10.40.0.11]) (amavisd-new, port 10024) with ESMTP id 2jjOIjuPuXU0 for ; Wed, 3 Aug 2016 07:25:22 +0000 (UTC) Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by mx1-lw-eu.apache.org (ASF Mail Server at mx1-lw-eu.apache.org) with SMTP id 75E395F24E for ; Wed, 3 Aug 2016 07:25:21 +0000 (UTC) Received: (qmail 55521 invoked by uid 99); 3 Aug 2016 07:25:20 -0000 Received: from arcas.apache.org (HELO arcas) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 03 Aug 2016 07:25:20 +0000 Received: from arcas.apache.org (localhost [127.0.0.1]) by arcas (Postfix) with ESMTP id 9082E2C0033 for ; Wed, 3 Aug 2016 07:25:20 +0000 (UTC) Date: Wed, 3 Aug 2016 07:25:20 +0000 (UTC) From: "ASF GitHub Bot (JIRA)" To: dev@fineract.incubator.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (FINERACT-65) Implement ability to schedule & e-mail reports MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 archived-at: Wed, 03 Aug 2016 07:25:28 -0000 [ https://issues.apache.org/jira/browse/FINERACT-65?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15405489#comment-15405489 ] ASF GitHub Bot commented on FINERACT-65: ---------------------------------------- Github user nazeer1100126 commented on a diff in the pull request: https://github.com/apache/incubator-fineract/pull/191#discussion_r73291621 --- Diff: fineract-provider/src/main/java/org/apache/fineract/commands/service/CommandWrapperBuilder.java --- @@ -2736,4 +2736,27 @@ public CommandWrapperBuilder deleteSelfServiceBeneficiaryTPT(final Long benefici return this; } -} \ No newline at end of file + public CommandWrapperBuilder createReportMailingJob(final String entityName) { + this.actionName = "CREATE"; + this.entityName = entityName; + this.entityId = null; + this.href = "/reportmailingjobs"; + return this; + } + + public CommandWrapperBuilder updateReportMailingJob(final String entityName, final Long entityId) { --- End diff -- Caller is passing permission name and entity id. But you are assigning permission name to entity name > Implement ability to schedule & e-mail reports > ---------------------------------------------- > > Key: FINERACT-65 > URL: https://issues.apache.org/jira/browse/FINERACT-65 > Project: Apache Fineract > Issue Type: New Feature > Reporter: Emmanuel Nnaa > Assignee: Markus Geiss > Priority: Minor > > Some reports take a bit longer to run, therefore we should be able to allow our users to schedule them overnight to be e-mailed. > The way this should work is: > - Add e-mailaddress to users and make it mandatory (possibly already in MifosX) > - Allow users to configure schedule entries which consist of: > - One or multiple target users (e-mailaddresses) > - Set the preferred subject and content of the e-mail (Look at user generated documents API in MifosX for replacing certain variables) > - Choose the run frequency of the report (daily, weekly, every x'th day of the month etc, cron-like flexibility with a UI) > - Pick the preferred output format (PDF/XLS/CSV) > These reports should be picked up by a scheduled job overnight and then run in serial to avoid performance hits and sent out to the users. -- This message was sent by Atlassian JIRA (v6.3.4#6332)