public class ConvertDBEmailToTask extends SQLCommand
CONVERT_EMAIL_TO_TASK EMAIL_GK global_key EMAIL_ADDRESS_PAT address_pattern SUBJECT_PAT subject_pattern ID_PAT id_pattern [CREATE_QUOTE] [CUSTOMER_GK cus_gk] [ERROR_EMAIL error_email_address] [RECIPIENT recipient_email] [IGNORED_RECIPIENT ignored_recipient] [UNSUCCESSFUL_PAT unsuccessful_pattern] [SUCCESSFUL_PAT successful_pattern]Usage
CONVERT_EMAIL_TO_TASK EMAIL_GK 123@2~1@1 EMAIL_ADDRESS_PAT '^.*hotmail\\.com\\.au$' SUBJECT_PAT '^Quote.*$' ID_PAT '\\d{14}'THREAD MODE: SINGLE THREADED command
CURSOR_SIZE
Constructor and Description |
---|
ConvertDBEmailToTask(Connection connection,
Pattern pattern) |
Modifier and Type | Method and Description |
---|---|
SalesCycle |
additionalSearch(DBEmail email,
MutableDataSource ds)
Additional search for sale opportunity
|
protected void |
execute(Parser p)
Execute the JOB command.
|
java.lang.String |
getColumnName(int col)
The column name
|
java.lang.String |
getColumnType(int col)
The column type
|
java.lang.String |
getRecordID(int row)
The record ID for this row
|
java.lang.Object |
getValue(int row,
int col)
The value for this row/col
|
DBFile |
relocateAttachment(DBEmail email,
MutableDataSource ds,
DBFile file,
boolean createQuote)
Relocate email attachment
|
protected void |
scanFile(SalesCycle sc,
DBFile file,
DBEmail email) |
appendResult, appendResult, getCursorName, getRecordKey, isExecuteOnly
execute, extMakeThreadName, getConnection, getPattern, getRawTitle, getTitle, makeThreadName, recordCall, setTitle
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getRawTitle
public ConvertDBEmailToTask(Connection connection, Pattern pattern)
connection
- pattern
- protected void execute(@Nonnull Parser p) throws java.lang.Exception
protected void scanFile(SalesCycle sc, DBFile file, DBEmail email) throws java.lang.Exception
java.lang.Exception
public SalesCycle additionalSearch(DBEmail email, MutableDataSource ds) throws java.lang.Exception
email
- the parametersds
- the parametersjava.lang.Exception
- a serious problem.public DBFile relocateAttachment(DBEmail email, MutableDataSource ds, DBFile file, boolean createQuote) throws java.lang.Exception
email
- the parametersds
- the parametersfile
- the parameterscreateQuote
- java.lang.Exception
- a serious problem.public java.lang.String getColumnName(int col)
col
- offset from 1public java.lang.String getColumnType(int col) throws java.lang.Exception
col
- offset from 1java.lang.Exception
- a serious problempublic java.lang.Object getValue(int row, int col) throws java.lang.Exception
row
- offset from 1col
- offset from 1java.lang.Exception
- a serious problempublic java.lang.String getRecordID(int row)
row
- offset from 1stSoftware Copyright © 2001-2014 stSoftware All Rights Reserved.