cancel
Showing results for 
Search instead for 
Did you mean: 

DATA_GRID property

orhunyz
Champ in-the-making
Champ in-the-making
Hi when I create a customTask (like moneyTask) with DATA_GRID property it doesn't get saved *bpmn20.xml output file. it doesn't any error message. What is the problem
Activiti Eclipse BPMN 2.0 Designer Version : 5.8.1


/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
//////////////////            FlexMailTask.java File  ///////////////////////////////////////////////////////////////
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
package com.uniyaz.servicetasks;

import java.util.List;

import org.activiti.designer.integration.servicetask.AbstractCustomServiceTask;
import org.activiti.designer.integration.servicetask.PropertyType;
import org.activiti.designer.integration.servicetask.annotation.DataGridProperty;
import org.activiti.designer.integration.servicetask.annotation.DatePickerProperty;
import org.activiti.designer.integration.servicetask.annotation.Help;
import org.activiti.designer.integration.servicetask.annotation.Property;
import org.activiti.designer.integration.servicetask.annotation.PropertyItems;
import org.activiti.designer.integration.servicetask.annotation.Runtime;

/**
*
* @author orfur - Orhun YILMAZ
*
*/
@Runtime(delegationClass = "com.uniyaz.flexcity.core.integration.processengine.delegate.FlexMailTask")
@Help(displayHelpShort = "Flex MailTask", displayHelpLong = "Universal - Flex MailTask")
public class FlexMailTask  extends AbstractCustomServiceTask {

  @Property(type = PropertyType.TEXT, displayName = "To", required = true, defaultValue = "")
  @Help(displayHelpShort = "Mail Gönderilecek Kisi", displayHelpLong = "Bu alana mail gönderilecek kisinin mail adresini yaziniz.")
  private String mailTo;
  
  @Property(type = PropertyType.TEXT, displayName = "CC", required = false, defaultValue = "")
  @Help(displayHelpShort = "CC ", displayHelpLong = "CC")
  private String mailCC;
 
  @Property(type = PropertyType.TEXT, displayName = "BCC", required = false, defaultValue = "")
  @Help(displayHelpShort = "BCC ", displayHelpLong = "BCC")
  private String mailBCC;

  @Property(type = PropertyType.TEXT, displayName = "Subject", required = false, defaultValue = "")
  @Help(displayHelpShort = "Subject ", displayHelpLong = "Mail ile ilgili konu giriniz (Örn: InbDosyaID =  ${sisInbDosyaId} )")
  private String mailSubject;
 
  @Property(type = PropertyType.DATA_GRID, displayName = "Mail Attachments")
  @DataGridProperty(itemClass = MailAttachments.class, orderable = false)
  private List<MailAttachments> mailAttachments;
 
  @Property(type = PropertyType.TEXT, displayName = "Mail TemplateID", required = false)
  @Help(displayHelpShort = "TemplateID", displayHelpLong = "Şablon tanım penceresinde tanımlanmiş formid girilmeli")
  private String templateId;
 
  @Property(type = PropertyType.MULTILINE_TEXT, displayName = "Html text", required = false)
  @Help(displayHelpShort = "Html text", displayHelpLong = "Html text")
  private String comments;

}
}

/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
//////////////////            MailAttachments.java File  ///////////////////////////////////////////////////////////////
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////

package com.uniyaz.servicetasks;

import java.io.Serializable;

import org.activiti.designer.integration.servicetask.PropertyType;
import org.activiti.designer.integration.servicetask.annotation.Help;
import org.activiti.designer.integration.servicetask.annotation.Property;

/*
* Mail gönderilirken birden fazla attachment olabilecegi icin bu sekilde yapildi.
*
* */
public class MailAttachments implements Serializable{

  @Property(type = PropertyType.TEXT, displayName = "Variable", required = true)
  @Help(displayHelpShort = "Varible", displayHelpLong = "Variable")
  private String mailProcessVariableName;

  @Property(type = PropertyType.TEXT, displayName = "Display Name", required = true)
  @Help(displayHelpShort = "Name", displayHelpLong = "Display Name")
  private String displayName;
   

}
1 REPLY 1

tiesebarrell
Champ in-the-making
Champ in-the-making