ArticleCreate event without Attachments

Juan Manuel <[email protected]> Fri, 28 Sep 2018 10:37:43 +0200
Newsgroups gmane.comp.otrs.devel
Message-ID <CAPq0gGE=MGC1Zxdgk4pSF0_5SZ7LXMEZNptH_dnyUskzyh3hnA@mail.gmail.com>
--===============2185029288693664003==
Content-Type: multipart/alternative; boundary="00000000000046bf910576ea5fba"

--00000000000046bf910576ea5fba
Content-Type: text/plain; charset="UTF-8"

Dear all,

I have a question regarding the way ArticleCreate and
ArticleWriteAttachments are handled in kernel modules and generic interface
operations. I'm sure there must be some reasoning behind the way it works
and I'd be happy to understand it.

Almost everywhere were a new article with attachments can be created, the
preferred way to handle this is creating a new article and then writing the
attachments, although article create can handle attachments and would send
the article create event after the article is totally complete. This seems
to me a way of raising an event when the article is not yet complete and
using an "internal" function (not really internal but I would say that only
the Article object should have the need for writing and deleting
attachments from an article) from outside the object.

Could anyone explain to me why the preferred way is NOT passing the
attachments to ArticleCreate?

Kind regards,
juanma

--00000000000046bf910576ea5fba
Content-Type: text/html; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable

<div dir=3D"ltr"><div>Dear all,</div><div><br></div><div>I have a question =
regarding the=20
way ArticleCreate and ArticleWriteAttachments are handled in kernel=20
modules and generic interface operations. I&#39;m sure there must be some=
=20
reasoning behind the way it works and I&#39;d be happy to understand it.</d=
iv><div><br></div><div>Almost
 everywhere were a new article with attachments can be created, the preferr=
ed=20
way to handle this is creating a new article and then writing the=20
attachments, although article create can handle attachments and would=20
send the article create event after the article is totally complete.=20
This seems to me a way of raising an event when the article is not yet=20
complete and using an &quot;internal&quot; function (not really internal bu=
t I=20
would say that only the Article object should have the need for writing=20
and deleting attachments from an article) from outside the object.</div><di=
v><br></div><div>Could anyone explain to me why the preferred way is NOT pa=
ssing the attachments to ArticleCreate?</div><div><br></div><div>Kind regar=
ds,</div><div>juanma</div></div>

--00000000000046bf910576ea5fba--

--===============2185029288693664003==
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

_______________________________________________
OTRS mailing list: dev - Webpage: http://otrs.org/
Archive: http://lists.otrs.org/pipermail/dev
To unsubscribe: http://lists.otrs.org/mailman/listinfo/dev

--===============2185029288693664003==--